You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/08/29 12:40:24 UTC
[jira] Assigned: (HARMONY-1070) [classlib][text]
java.text.DecimalFormat.setDecimalFormatSymbols(null) throws unspecified
NPE
[ http://issues.apache.org/jira/browse/HARMONY-1070?page=all ]
Mark Hindess reassigned HARMONY-1070:
-------------------------------------
Assignee: Mark Hindess
> [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
> Assigned To: Mark Hindess
> Priority: Trivial
> Attachments: DecimalFormat.patch, DecimalFormat.patch, DecimalFormatTest.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