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/17 10:40:07 UTC

[jira] Commented: (HARMONY-466) [classlib][text] DateFormatSymbols, DecimalFormat, SimpleDateFormat methods should throw NPE

    [ 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