public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/1425: Date.toString() returns embedded newline
@ 2000-12-20 12:27 john
  0 siblings, 0 replies; only message in thread
From: john @ 2000-12-20 12:27 UTC (permalink / raw)
  To: java-gnats

>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:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:27 libgcj/1425: Date.toString() returns embedded newline john

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).