Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1238813

StringBufferInputStream.read returns values larger than 255

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_1
    • Verification:
      Not verified

      Description

      Should we regard it as a bug that the "read" method of class
      StringBufferInputStream sometimes returns int values that
      are not in the range -1 through 255? Because it pulls characters
      from a string and simply returns them, it might return values
      in the range 256 through 65535 as well. But code in other classes,
      such as method readUnsignedShort of class DataInputStream, seem to
      assume that the "read" method guarantees to return a result that
      is never larger than 255.

        Attachments

          Activity

            People

            Assignee:
            fyellinsunw Frank Yellin (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: