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:51:05 UTC
[jira] Created: (HARMONY-466) [classlib][text] Harmony should
follow the "Exception-throwing compatibility" guidelines.
[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
Priority: Minor
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
[jira] Commented: (HARMONY-466) [classlib][text] DateFormatSymbols,
DecimalFormat, SimpleDateFormat methods should throw NPE
Posted by "Dmitry M. Kononov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-466?page=comments#action_12412117 ]
Dmitry M. Kononov commented on HARMONY-466:
-------------------------------------------
Stepan,
Everything works well.
Thank you.
> [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE
> --------------------------------------------------------------------------------------------
>
> 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
[jira] Resolved: (HARMONY-466) [classlib][text] DateFormatSymbols,
DecimalFormat, SimpleDateFormat methods should throw NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-466?page=all ]
Stepan Mishura resolved HARMONY-466:
------------------------------------
Resolution: Fixed
Thanks Dmitry,
Updated patch was applied to TEXT module at r407161.
Please check that the patch was applied as you expected.
> [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE
> --------------------------------------------------------------------------------------------
>
> 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
[jira] Assigned: (HARMONY-466) [classlib][text] Harmony should
follow the "Exception-throwing compatibility" guidelines.
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (HARMONY-466) [classlib][text] Harmony should
follow the "Exception-throwing compatibility" guidelines.
Posted by "Dmitry M. Kononov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-466?page=all ]
Dmitry M. Kononov updated HARMONY-466:
--------------------------------------
Attachment: fix.diff.txt
Test.java
A test case and a suggested fix attached.
> [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
> 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
[jira] Updated: (HARMONY-466) [classlib][text] DateFormatSymbols,
DecimalFormat, SimpleDateFormat methods should throw NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-466?page=all ]
Stepan Mishura updated HARMONY-466:
-----------------------------------
Summary: [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE (was: [classlib][text] Harmony should follow the "Exception-throwing compatibility" guidelines.)
> [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE
> --------------------------------------------------------------------------------------------
>
> 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
[jira] Closed: (HARMONY-466) [classlib][text] DateFormatSymbols,
DecimalFormat, SimpleDateFormat methods should throw NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-466?page=all ]
Stepan Mishura closed HARMONY-466:
----------------------------------
Verified by Dmitry.
> [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE
> --------------------------------------------------------------------------------------------
>
> 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