You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Zhang (JIRA)" <ji...@apache.org> on 2007/01/11 08:40:27 UTC
[jira] Created: (HARMONY-2971) [classlib][sql]
SerialBlob.setBinaryStream should throw SerialException if it's
instantiated by byte buffer.
[classlib][sql] SerialBlob.setBinaryStream should throw SerialException if it's instantiated by byte buffer.
------------------------------------------------------------------------------------------------------------
Key: HARMONY-2971
URL: https://issues.apache.org/jira/browse/HARMONY-2971
Project: Harmony
Issue Type: Bug
Components: Non-bug differences from RI
Reporter: Andrew Zhang
The spec of SerialBlob.setBinaryStream says "throws SerialException - if the SerialBlob in not instantiated with a Blob object that supports setBinaryStream()". So if the SerialBlob is instantiated with a byte buffer, it's supposed to throw SerialException. But following test shows that RI throws NullPointerException instead:
public void testSetBinaryStreamJ() throws Exception {
byte[] buf = { 1, 2, 3, 4, 5, 6, 7, 8 };
SerialBlob serialBlob = new SerialBlob(buf);
serialBlob.setBinaryStream(1);
}
As discussed in dev mailing list, Harmony will comply with spec, and won't follow RI for this case.
Best regards,
Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-2971) [classlib][sql]
SerialBlob.setBinaryStream should throw SerialException if it's
instantiated by byte buffer.
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-2971.
--------------------------------
Resolution: Won't Fix
Assignee: Tim Ellison
> [classlib][sql] SerialBlob.setBinaryStream should throw SerialException if it's instantiated by byte buffer.
> ------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2971
> URL: https://issues.apache.org/jira/browse/HARMONY-2971
> Project: Harmony
> Issue Type: Bug
> Components: Non-bug differences from RI
> Reporter: Andrew Zhang
> Assigned To: Tim Ellison
>
> The spec of SerialBlob.setBinaryStream says "throws SerialException - if the SerialBlob in not instantiated with a Blob object that supports setBinaryStream()". So if the SerialBlob is instantiated with a byte buffer, it's supposed to throw SerialException. But following test shows that RI throws NullPointerException instead:
> public void testSetBinaryStreamJ() throws Exception {
> byte[] buf = { 1, 2, 3, 4, 5, 6, 7, 8 };
> SerialBlob serialBlob = new SerialBlob(buf);
> serialBlob.setBinaryStream(1);
> }
> As discussed in dev mailing list, Harmony will comply with spec, and won't follow RI for this case.
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira