You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry M. Kononov (JIRA)" <ji...@apache.org> on 2006/05/16 09:55:05 UTC
[jira] Created: (HARMONY-467) [classlib][luni] Harmony should
follow the "Exception-throwing compatibility" guidelines.
[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
[jira] Resolved: (HARMONY-467) [classlib][luni] Harmony should
follow the "Exception-throwing compatibility" guidelines.
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (HARMONY-467) [classlib][luni] Harmony should
follow the "Exception-throwing compatibility" guidelines.
Posted by "Dmitry M. Kononov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-467?page=all ]
Dmitry M. Kononov updated HARMONY-467:
--------------------------------------
Attachment: fix.diff.txt
Test.java
A test case and a suggested fix attached.
> [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
[jira] Commented: (HARMONY-467) [classlib][luni] Harmony should
follow the "Exception-throwing compatibility" guidelines.
Posted by "Dmitry M. Kononov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-467?page=comments#action_12413457 ]
Dmitry M. Kononov commented on HARMONY-467:
-------------------------------------------
Looks good.
Thanks Mikhail.
> [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
[jira] Assigned: (HARMONY-467) [classlib][luni] Harmony should
follow the "Exception-throwing compatibility" guidelines.
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ 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
[jira] Closed: (HARMONY-467) [classlib][luni] Harmony should follow
the "Exception-throwing compatibility" guidelines.
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-467?page=all ]
Mikhail Loenko closed HARMONY-467:
----------------------------------
verified by Dmitry
> [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