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/03/24 09:22:32 UTC

[jira] Created: (HARMONY-3491) [classlib][sql] SerialClob.setAsciiStream/setCharacterStream should throw SerialException if it's instantiated with a char array

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


[jira] Closed: (HARMONY-3491) [classlib][sql] SerialClob.setAsciiStream/setCharacterStream should throw SerialException if it's instantiated with a char array

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ 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.