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