Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3226

BlobLocatorInputStream.read() and ClobLocatorInputStream.read() don't mask out sign bits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.4.1.3
    • Network Client
    • None

    Description

      The javadoc for java.io.InputStream.read() says that the value byte is to be returned as an int in the range 0 to 255, but BlobLocatorInputStream and ClobLocatorInputStream instead return an int in the range -128 to 127. Since these streams are wrapped in BufferedInputStream objects before they are returned to the users, I don't think this will have any effect on user code.

      Attachments

        1. d3226.diff
          1 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: