harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry M. Kononov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-467) [classlib][luni] Harmony should follow the "Exception-throwing compatibility" guidelines.
Date Tue, 16 May 2006 07:55:05 GMT
[classlib][luni] Harmony should follow the "Exception-throwing compatibility" guidelines.
-----------------------------------------------------------------------------------------

         Key: HARMONY-467
         URL: http://issues.apache.org/jira/browse/HARMONY-467
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Dmitry M. Kononov
    Priority: Minor
 Attachments: Test.java, fix.diff.txt

1)
java.net.URLDecoder.decode(String s,  String enc):
Harmony does not throw UnsupportedEncodingException when s = null,enc = null, while RI throws
it.
Specification says:
"Throws: 
UnsupportedEncodingException - If character encoding needs to be consulted, but named character
encoding is not supported".

2)
java.util.ArrayList.addAll(int index, Collection c):
Harmony throws NullPointerException when index <0 and c =null, while RI throws IndexOutOfBoundsException.
Specification says:
"Throws: 
IndexOutOfBoundsException - if index out of range (index < 0 || index > size()). 
NullPointerException - if the specified Collection is null."

3)
java.util.LinkedList.addAll(int index, Collection c):
Harmony throws NullPointerException when index <0 and c=null, while RI throws IndexOutOfBoundsException.
Specification says:
"Throws: 
IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index
> size()). 
NullPointerException - if the specified collection is null."


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message