This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libgcj/2429: java.text.MessageFormat broken
- To: nobody at gcc dot gnu dot org
- Subject: Re: libgcj/2429: java.text.MessageFormat broken
- From: Tom Tromey <tromey at redhat dot com>
- Date: 31 Mar 2001 04:16:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Tom Tromey <tromey at redhat dot com>
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