libgcj/1358: java.util.Data.toString() doesn't seem to behave properly.
apbianco@cygnus.com
apbianco@cygnus.com
Wed Dec 20 12:25:00 GMT 2000
>Number: 1358
>Category: libgcj
>Synopsis: java.util.Data.toString() doesn't seem to behave properly.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: warrenl
>State: analyzed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:17 PST 2000
>Closed-Date:
>Last-Modified: Mon Dec 18 23:40:01 PST 2000
>Originator: Alexandre Petit-Bianco
>Release: latest and greatest from CVS.
>Organization:
>Environment:
RHL 6.2 x86
>Description:
The following program:
public class dateTest {
public static void main (String [] args) {
System.out.println(new java.util.Date (100,8,23).toString ());
}
}
outputs:
Sat Sep 23 01:00:00 GMT 2000
where I think it should output
Sat Sep 23 00:00:00 PDT 2000
(I'm not sure about the PDT/GMT, but 01:00:00 seems wrong
since with the constructor I'm using; hours, minutes and
second are set to zero.)
>How-To-Repeat:
Build and run the test case.
>Fix:
I looked at the java.util.Date but didn't see anything
too obvious.
>Release-Note:
>Audit-Trail:
Formerly PR java.util/331
From: Tom Tromey <tromey@cygnus.com>
To: apbianco@cygnus.com
Cc: java-gnats@sourceware.cygnus.com, pascal.forget@videotron.ca
Subject: Re: java.util/331: java.util.Data.toString() doesn't seem to behave properly.
Date: 25 Aug 2000 12:27:20 -0600
Alex> public class dateTest {
Alex> public static void main (String [] args) {
Alex> System.out.println(new java.util.Date (100,8,23).toString ());
Alex> }
Alex> }
We only have a stubbed Date class. It only really handles GMT.
We should handle this by importing Classpath code.
This would be easiest if we could solve the CNI problem, because the
code involves native methods.
Tom
From: Bryce McKinlay <bryce@albatross.co.nz>
To: java-gnats@sourceware.cygnus.com
Cc:
Subject: Re: java.util/331
Date: Sat, 16 Dec 2000 16:44:13 +1300
See also PR 380:
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=380&database=java
This test case crashes miserably with the current cvs. Something to do
with the time zone.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=331&database=java
State-Changed-From-To: open->analyzed
State-Changed-By: warrenl
State-Changed-When: Mon Dec 18 23:33:45 2000
State-Changed-Why:
Partial fix checked in to egcs.
From: warrenl@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
pascal.forget@videotron.ca, warrenl@cygnus.com
Cc:
Subject: Re: java.util/331
Date: 19 Dec 2000 07:33:46 -0000
Synopsis: java.util.Data.toString() doesn't seem to behave properly.
State-Changed-From-To: open->analyzed
State-Changed-By: warrenl
State-Changed-When: Mon Dec 18 23:33:45 2000
State-Changed-Why:
Partial fix checked in to egcs.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=331&database=java
>Unformatted:
More information about the Gcc-prs
mailing list