You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/05/26 11:26:30 UTC

[jira] Resolved: (HARMONY-467) [classlib][luni] Harmony should follow the "Exception-throwing compatibility" guidelines.

     [ http://issues.apache.org/jira/browse/HARMONY-467?page=all ]
     
Mikhail Loenko resolved HARMONY-467:
------------------------------------

    Resolution: Fixed

fixed in revision 409607
Dmitry please check that it fully resolves the issue

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