This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libgcj/1425: Date.toString() returns embedded newline
- To: java-gnats at sourceware dot cygnus dot com
- Subject: libgcj/1425: Date.toString() returns embedded newline
- From: john at ndr dot com
- Date: 18 Sep 1999 14:30:11 -0000
- Reply-To: john at ndr dot com
>Number: 1425
>Category: libgcj
>Synopsis: Date.toString() returns embedded newline
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:43 PST 2000
>Closed-Date: Tue Sep 28 10:30:04 PDT 1999
>Last-Modified: Tue Sep 28 10:30:04 PDT 1999
>Originator: John Griffin
>Release: 2.95.1
>Organization:
>Environment:
Intel Linux Redhat 6.0
>Description:
Date.toString() is terminated by embedded newline which
does not match the form shown in Sun Java doc.
>How-To-Repeat:
System.out.println(new Date());
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR java.util/47
From: Tom Tromey <tromey@cygnus.com>
To: john@ndr.com
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: java.util/47: Date.toString() returns embedded newline
Date: Sat, 18 Sep 1999 09:55:43 -0700
Yeah, this function is known to be broken.
Currently it uses ctime() in its implementation. This is just wrong,
despite the reference to ctime() (in some Java documentation
somewhere).
T
Responsible-Changed-From-To: wwarrenl->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Fri Sep 24 12:17:15 1999
Responsible-Changed-Why:
I fixed it.
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Fri Sep 24 12:17:15 1999
State-Changed-Why:
I've checked in a fix for this. Basically I rewrote
Date.toString(); the current implementation was wrong
in more than one way.
Can you test this?
If so, try it and get back to me.
If not, tell me and I will just close the PR.
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Tue Sep 28 10:30:04 1999
State-Changed-Why:
Reporter reports that the patch fixes it
>Unformatted: