public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
@ 2003-06-05 15:09 ` pinskia@physics.uc.edu
  2003-06-08  2:04 ` tromey@redhat.com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-05 15:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-05 15:09:33
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-06-05 15:09 -------
Confirmed with 3.3.1 (20030526) and the mainline (20030604).



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
  2003-06-05 15:09 ` [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates pinskia@physics.uc.edu
@ 2003-06-08  2:04 ` tromey@redhat.com
  2003-07-24 15:44 ` pinskia at physics dot uc dot edu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: tromey@redhat.com @ 2003-06-08  2:04 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085



------- Additional Comments From tromey@redhat.com  2003-06-08 02:04 -------
I looked at this today.

I've fixed a couple bugs in this area.  I'll check in the patch
soon.

The bigger problem is that our SimpleDateFormat doesn't understand
the "Z" format.  I'm leaving this part unfixed for now.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
  2003-06-05 15:09 ` [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates pinskia@physics.uc.edu
  2003-06-08  2:04 ` tromey@redhat.com
@ 2003-07-24 15:44 ` pinskia at physics dot uc dot edu
  2003-08-23  0:25 ` dhazeghi at yahoo dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 15:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-06-05 15:09:33         |2003-07-24 15:44:19
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-24 15:44 -------
It still fails on the mainline (20030724).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
                   ` (2 preceding siblings ...)
  2003-07-24 15:44 ` pinskia at physics dot uc dot edu
@ 2003-08-23  0:25 ` dhazeghi at yahoo dot com
  2005-01-22  3:29 ` gnu_andrew at member dot fsf dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  0:25 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
                   ` (3 preceding siblings ...)
  2003-08-23  0:25 ` dhazeghi at yahoo dot com
@ 2005-01-22  3:29 ` gnu_andrew at member dot fsf dot org
  2005-03-23 21:26 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: gnu_andrew at member dot fsf dot org @ 2005-01-22  3:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gnu_andrew at member dot fsf dot org  2005-01-22 03:29 -------
In current Classpath CVS head, parsing of this string is now successful.  The
output of the given test case is:

$ java TestParse
Result: Wed Jun 04 03:09:35  2003
Fail

"Fail" is printed because the value doesn't match the given string.  But, this
string is the time localized to the timezone of where the class is being run. 
Sun outputs this localized String, while, at present, the Classpath one is
always in GMT.  It is clear that the above figure is the time 22:09:35 -0500
shifted five hours forward to GMT.  Sun's VM (1.5) also fails the second bit, as
it produces the localized output "Wed Jun 04 04:09:35 BST 2003" (being run on a
machine in the UK).

Comparing the numeric millisecond values is more accurate, and this shows
equivalent values (1054696175000) for both VMs, and a mental grasp of the
date/time shows that the output is correct.  

The only possible bug remaining here is that the Date.toString() output is
incorrect, as it does not use the timezone field.  Whether this is truly a bug
or not is open to debate, as there appears to be no documentation on this in
java.util.Date other than the requirement for a zzz field.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
                   ` (4 preceding siblings ...)
  2005-01-22  3:29 ` gnu_andrew at member dot fsf dot org
@ 2005-03-23 21:26 ` cvs-commit at gcc dot gnu dot org
  2005-03-23 21:36 ` cvs-commit at gcc dot gnu dot org
  2005-03-23 21:39 ` tromey at gcc dot gnu dot org
  7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-23 21:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-23 21:26 -------
Subject: Bug 11085

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2005-03-23 21:26:00

Modified files:
	libjava        : ChangeLog 
	libjava/java/text: SimpleDateFormat.java 
	libjava/java/util: Calendar.java GregorianCalendar.java 

Log message:
	2005-03-23  Sven de Marothy  <sven@physto.se>
	
	PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083,
	PR libgcj/11085:
	* java/util/Calendar.java
	(set): Use starting day of week when one is needed if none is given.
	* java/text/SimpleDateFormat.java
	(parse): Handle 1-12 and 1-24 timestamps correctly.
	* java/util/GregorianCalendar.java
	(computeTime, computeFields): HOUR should be in 0-11 format.
	(nonLeniencyCheck): Adjust leniency checking to that fact.
	(getLinearDay): Should be private.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3431&r2=1.3432
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/text/SimpleDateFormat.java.diff?cvsroot=gcc&r1=1.32&r2=1.33
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/util/Calendar.java.diff?cvsroot=gcc&r1=1.27&r2=1.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/util/GregorianCalendar.java.diff?cvsroot=gcc&r1=1.26&r2=1.27



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
                   ` (5 preceding siblings ...)
  2005-03-23 21:26 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-23 21:36 ` cvs-commit at gcc dot gnu dot org
  2005-03-23 21:39 ` tromey at gcc dot gnu dot org
  7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-23 21:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-23 21:36 -------
Subject: Bug 11085

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	tromey@gcc.gnu.org	2005-03-23 21:36:25

Modified files:
	libjava        : ChangeLog 
	libjava/java/util: Calendar.java GregorianCalendar.java 
	libjava/java/text: SimpleDateFormat.java 

Log message:
	2005-03-23  Sven de Marothy  <sven@physto.se>
	
	PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083,
	PR libgcj/11085:
	* java/util/Calendar.java
	(set): Use starting day of week when one is needed if none is given.
	* java/text/SimpleDateFormat.java
	(parse): Handle 1-12 and 1-24 timestamps correctly.
	* java/util/GregorianCalendar.java
	(computeTime, computeFields): HOUR should be in 0-11 format.
	(nonLeniencyCheck): Adjust leniency checking to that fact.
	(getLinearDay): Should be private.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.22&r2=1.3391.2.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/util/Calendar.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.27&r2=1.27.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/util/GregorianCalendar.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.26&r2=1.26.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/text/SimpleDateFormat.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.32&r2=1.32.2.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates
       [not found] <20030604052449.11085.cduffy@spamcop.net>
                   ` (6 preceding siblings ...)
  2005-03-23 21:36 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-23 21:39 ` tromey at gcc dot gnu dot org
  7 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-03-23 21:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-03-23 21:38 -------
Fix checked in.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11085


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-03-23 21:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030604052449.11085.cduffy@spamcop.net>
2003-06-05 15:09 ` [Bug libgcj/11085] SimpleDateFormat fails to parse valid dates pinskia@physics.uc.edu
2003-06-08  2:04 ` tromey@redhat.com
2003-07-24 15:44 ` pinskia at physics dot uc dot edu
2003-08-23  0:25 ` dhazeghi at yahoo dot com
2005-01-22  3:29 ` gnu_andrew at member dot fsf dot org
2005-03-23 21:26 ` cvs-commit at gcc dot gnu dot org
2005-03-23 21:36 ` cvs-commit at gcc dot gnu dot org
2005-03-23 21:39 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).