harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6209) [classlib][nio] java.nio.CharBuffer.read(CharBuffer target) throws an IllegalArgumentException while RI doesn't in a special scenario
Date Fri, 15 May 2009 08:24:46 GMT
[classlib][nio] java.nio.CharBuffer.read(CharBuffer target) throws an IllegalArgumentException
while RI doesn't in a special scenario
-------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-6209
                 URL: https://issues.apache.org/jira/browse/HARMONY-6209
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M9
            Reporter: Kevin Zhou
             Fix For: 5.0M10


Given a test case [1], RI passes it while HARMONY throws a java.lang.IllegalArgumentException
[2]. 

[1] Test Case:
public void test_CharBuffer_read() throw Exception {
    char[] charArray = new char[] { 'a', 'b' };
    CharBuffer charBuffer = CharBuffer.wrap(charArray);
    charBuffer.put(charArray);
    assertEquals(-1, charBuffer.read(charBuffer));
}

[2] Stack Trace:
java.lang.IllegalArgumentException
at java.nio.CharBuffer.read(CharBuffer.java:786)

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