This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libgcj/2429: java.text.MessageFormat broken


The following reply was made to PR libgcj/2429; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: torsten.rueger@firsthop.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libgcj/2429: java.text.MessageFormat broken
Date: 30 Mar 2001 21:22:59 -0700

 >>>>> "Torsten" == torsten rueger <torsten.rueger@firsthop.com> writes:
 
 Torsten> At first I could not instantiate MessageFormat with "{1,time}
 Torsten> {2}:{3} {4}". I fixed this with an else in line 91 in
 Torsten> java.text.MessageFormat. Then using it caused illegal
 Torsten> Argument. Attatched is a small Test program that should show
 Torsten> the problem.
 
 I agree that the `else' fix is required.  Thanks.
 
 The other bug is in your program.
 
 You can make your program work by changing main to use:
 
     LogFile log = new LogFile("log.file","{0,time} {1}:{2} {3}","ERROR",
 			      null,true);
     log.flush();
 
 Our MessageFormat doesn't give very nice error messages,
 unfortunately.  I will change this PR to reflect this as the real bug
 -- much debugging would have been saved if it did.
 
 Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]