harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-467) [classlib][luni] Harmony should follow the "Exception-throwing compatibility" guidelines.
Date Fri, 26 May 2006 08:10:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-467?page=all ]

Mikhail Loenko reassigned HARMONY-467:
--------------------------------------

    Assign To: Mikhail Loenko

> [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
>     Assignee: Mikhail Loenko
>     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