J
Jean-Marc Desperrier
I post just to record here a problem with gcj 3.2.3 that I found no
reference to elsewhere.
This code :
DateFormat dateIn = new SimpleDateFormat("yyyyMMddHHmmss");
Date stime = dateIn.parse("20050518140910");
will rise "invalid Date syntax" in gcj and work with sun java.
This is because that version of gcj does not expect that the element of
the date can have no separator between them.
You need to have ' ', ':', '-', something between yyyy MM and dd, etc.
Checking here what *did* work helped me out :
http://sources.redhat.com/cgi-bin/c...ateFormat/regress.java?rev=1.12&cvsroot=mauve
I'm *not* saying later versions don't correct this, had no time to
install and check.
reference to elsewhere.
This code :
DateFormat dateIn = new SimpleDateFormat("yyyyMMddHHmmss");
Date stime = dateIn.parse("20050518140910");
will rise "invalid Date syntax" in gcj and work with sun java.
This is because that version of gcj does not expect that the element of
the date can have no separator between them.
You need to have ' ', ':', '-', something between yyyy MM and dd, etc.
Checking here what *did* work helped me out :
http://sources.redhat.com/cgi-bin/c...ateFormat/regress.java?rev=1.12&cvsroot=mauve
I'm *not* saying later versions don't correct this, had no time to
install and check.