harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Okomin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1070) [classlib][text] java.text.DecimalFormat.setDecimalFormatSymbols(null) throws unspecified NPE
Date Fri, 04 Aug 2006 14:25:14 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1070?page=comments#action_12425757 ] 
            
Ilya Okomin commented on HARMONY-1070:
--------------------------------------

What is to add: I wonder why DecimalFormatTest is excluded from the test classes for [text]
module in ..\text\build.xml configuration file?

> [classlib][text] java.text.DecimalFormat.setDecimalFormatSymbols(null) throws unspecified
NPE
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1070
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1070
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Trivial
>         Attachments: DecimalFormat.patch, DecimalFormatTest.patch
>
>
> java.text.DecimalFormat.setDecimalFormatSymbols(null) throws unspecified NPE
> Test-------------------------------------------------------------------------------------

> import java.text.*;
> public class test  { 
>     public static void main (String[] args) { 
>         try {                                                                   
>             DecimalFormat format = (DecimalFormat)DecimalFormat.getInstance();
>             format.setDecimalFormatSymbols(null);                     
>        } catch (Exception e) {
>            e.printStackTrace();
>        }  
> }
> Output------------------------------------------------------------------------------------

> RI:
> (no output, in spec nothing is to be thrown also)
> Harmony
> (java version "1.5.0" 
> pre-alpha : not complete or compatible
> svn = r424571, (Jul 22 2006), Windows/ia32/msvc 1310, release build):
> java.lang.NullPointerException
>         java.text.DecimalFormat.setDecimalFormatSymbols(DecimalFormat.java:459)
>         at test.main(test.java:7)
> Fix:
> suggested fix and patch to the testcase is in the attach

-- 
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