SimpleDateFormat

- - decuplo@yahoo.com
Thu Jun 19 11:55:00 GMT 2008


Hi,
in attach is my complete source test case.

The output with gcj "3.4.5 (mingw-vista special r3)" is:

$ snippetCalendar.exe 
Test for SimpleDateFormat
datai:29-Dec-99 11:00:09 PM

That is ok.

The output with "4.3.0 20080305 (alpha-testing) mingw-20080502" is:

$ snippetCalendar.exe 
Test for SimpleDateFormat
Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(fake:0)
   at java.util.Currency.getInstance(fake:0)
   at java.text.DecimalFormatSymbols.<init>(fake:0)
   at java.text.DecimalFormatSymbols.getInstance(fake:0)
   at java.text.NumberFormat.computeInstance(fake:0)
   at java.text.NumberFormat.getNumberInstance(fake:0)
   at java.text.SimpleDateFormat.<init>(fake:0)
   at snippetCalendar.main(fake:0)
Caused by: java.lang.NullPointerException
   at java.io.InputStreamReader.read(fake:0)
   at java.io.BufferedReader.fill(fake:0)
   at java.io.BufferedReader.readLine(fake:0)
   at java.util.Properties.load(fake:0)
   at java.util.Currency.<clinit>(fake:0)
   at java.lang.Class.initializeClass(fake:0)
   ...7 more


Thanks for any help.
x10








--- On Thu, 6/19/08, Andrew Haley <> wrote:

> From: Andrew Haley <>
> Subject: Re: SimpleDateFormat

> Date: Thursday, June 19, 2008, 11:55 AM
> - - wrote:
> 
> > How we can understand if it is a gcj problem or a
> mingw problem?
> 
> You need to provide a full test case.
> 
> Andrew.


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snippetCalendar.java
Type: text/x-java
Size: 567 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20080619/f78a98d0/attachment.bin>


More information about the Java mailing list