harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2971) [classlib][sql] SerialBlob.setBinaryStream should throw SerialException if it's instantiated by byte buffer.
Date Thu, 11 Jan 2007 10:55:27 GMT

     [ 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

        

Mime
View raw message