harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry M. Kononov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-466) [classlib][text] Harmony should follow the "Exception-throwing compatibility" guidelines.
Date Tue, 16 May 2006 07:51:05 GMT
[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


Mime
View raw message