[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #11545] [regression] locales
From: |
Andrew John Hughes |
Subject: |
[commit-cp] [bugs #11545] [regression] locales |
Date: |
Tue, 11 Jan 2005 16:36:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Epiphany/1.0.8 |
This is an automated notification sent by Savannah.
It relates to:
bugs #11545, project classpath
==============================================================================
LATEST MODIFICATIONS of bugs #11545:
==============================================================================
Posted by: Andrew John Hughes <gnu_andrew>
Posted on: 2005-01-11 16:36 (GMT)
_______________________________________________________
Status: None -> Fixed
Open/Closed: Open -> Closed
==============================================================================
OVERVIEW of bugs #11545:
==============================================================================
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11545>
Summary: [regression] locales
Project: classpath
Submitted by: zander
Submitted on: Sun 01/09/2005 at 19:31
Category: classpath
Severity: 5 - Average
Status: Fixed
Privacy: Public
Assigned to: gnu_andrew
Open/Closed: Closed
Platform Version: None
_______________________________________________________
Since 0.13 (jamvm 1.2.3) I get a nullpointer on the following line:
DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG).format(new
Date());
this is the stacktrace:
java.lang.NullPointerException
at java.text.DecimalFormatSymbols.setCurrency
(DecimalFormatSymbols.java:397)
at java.text.DecimalFormatSymbols.<init> (DecimalFormatSymbols.java:151)
at java.text.NumberFormat.computeInstance (NumberFormat.java:327)
at java.text.NumberFormat.getNumberInstance (NumberFormat.java:456)
at java.text.NumberFormat.getInstance (NumberFormat.java:381)
at java.text.SimpleDateFormat.<init> (SimpleDateFormat.java:218)
at java.text.DateFormat.computeInstance (DateFormat.java:407)
at java.text.DateFormat.getDateTimeInstance (DateFormat.java:485)
at java.text.DateFormat.getDateTimeInstance (DateFormat.java:469)
at gnu.testlet.runner.HTMLGenerator.createReport (HTMLGenerator.java:56)
Note that my classes (and thus the above line) are compiled using javac from
Sun.
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 01/11/2005 at 16:17 By: Andrew John Hughes <gnu_andrew>
System.out.println(Locale.getDefault()) should do it in a simple test class.
I'm committing a fix now which sorts out the NPE.
-------------------------------------------------------
Date: Tue 01/11/2005 at 13:06 By: Anonymous
I have none set (use KDE/debian in default langage, and did not pass any to
jamvm).
I think its C, but if you can tell me how I can find out; I'll tell you what
the output it :)
Thomas Zander
-------------------------------------------------------
Date: Tue 01/11/2005 at 10:34 By: Andrew John Hughes <gnu_andrew>
Yes, I was already halfway through fixing this one before I saw this bug
report. The exception should be caught by the DecimalFormatSymbols instance,
and I'm currently testing a patch for this.
What is your default locale? The reason this exception is being thrown is
because there is no currency data that can be retrieved for the default
locale.
==============================================================================
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11545>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/