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

StringBufferInputStream.read returns values larger than 255

    XMLWordPrintable

Details

    • 1.1
    • sparc
    • solaris_1
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: