You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2006/05/16 11:44:06 UTC
[jira] Assigned: (HARMONY-466) [classlib][text] Harmony should
follow the "Exception-throwing compatibility" guidelines.
[ http://issues.apache.org/jira/browse/HARMONY-466?page=all ]
Stepan Mishura reassigned HARMONY-466:
--------------------------------------
Assign To: Stepan Mishura
> [classlib][text] Harmony should follow the "Exception-throwing compatibility" guidelines.
> -----------------------------------------------------------------------------------------
>
> Key: HARMONY-466
> URL: http://issues.apache.org/jira/browse/HARMONY-466
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Dmitry M. Kononov
> Assignee: Stepan Mishura
> Priority: Minor
> Attachments: Test.java, fix.diff.txt
>
> 1)
> java.text.DateFormatSymbols.setLocalPatternChars(String newLocalPatternChars):
> Harmony does not throw NullPointerException when newLocalPatternChars=null, while RI throws it.
> Specification does not mention NullPointerException throwing.
> It's a bug becasue we should comply with RI if spec is not clear.
> 2)
> java.text.DecimalFormat.formatToCharacterIterator(Object obj):
> Harmony throws IllegalArgumentException when obj= null, while RI throws NullPointerException.
> Specification says:
> "Throws:
> NullPointerException - if obj is null.
> IllegalArgumentException - when the Format cannot format the given object."
> It's a bug as we should comply with spec.
> 3)
> java.text.SimpleDateFormat.formatToCharacterIterator(Object obj):
> Harmony throws IllegalArgumentException when obj=null, while RI throws NullPointerException.
> Specification says:
> "Throws:
> NullPointerException - if obj is null.
> IllegalArgumentException - if the Format cannot format the given object, or if the Format's
> pattern string is invalid."
> It's a bug as we should comply with RI.
--
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