harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3491) [classlib][sql] SerialClob.setAsciiStream/setCharacterStream should throw SerialException if it's instantiated with a char array
Date Sat, 24 Mar 2007 08:22:32 GMT
[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