harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-466) [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE
Date Wed, 17 May 2006 05:22:06 GMT
     [ 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


Mime
View raw message