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-3491) [classlib][sql] SerialClob.setAsciiStream/setCharacterStream should throw SerialException if it's instantiated with a char array
Date Thu, 31 May 2007 11:13:16 GMT

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

Tim Ellison closed HARMONY-3491.
--------------------------------

    Resolution: Won't Fix

> [classlib][sql] SerialClob.setAsciiStream/setCharacterStream should throw SerialException
if it's instantiated with a char array 
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3491
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3491
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Andrew Zhang
>
> RI behaves strangely of SerialClob.setAsciiStream/setCharacterStream, consider: 
>    public void testSetAsciiStream() throws Exception {
>         SerialClob serialClob = new SerialClob("helloo".toCharArray());
>         serialClob.setAsciiStream(1);
>     }
>     public void testSetCharacterStream() throws Exception {
>         SerialClob serialClob = new SerialClob("helloo".toCharArray());
>         serialClob.setCharacterStream(1);
>     }
> As spec says "If this SerialClob object is instantiated with a char array, a SerialException
object is thrown." But both test cases throw NullPointerException. As dicussed in our mailing
list, we'd regard it as RI bug, and not follow RI's behaviour. 
> Best regards,
> Andrew

-- 
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