db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3226) BlobLocatorInputStream.read() and ClobLocatorInputStream.read() don't mask out sign bits
Date Mon, 26 Nov 2007 12:48:43 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-3226:
--------------------------------------

    Attachment: d3226.diff

Attached is a patch which masks out the sign bits (upper three bytes) when promoting the byte
to an int. I have started the regression tests.

> BlobLocatorInputStream.read() and ClobLocatorInputStream.read() don't mask out sign bits
> ----------------------------------------------------------------------------------------
>
>                 Key: DERBY-3226
>                 URL: https://issues.apache.org/jira/browse/DERBY-3226
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d3226.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message