From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tromey To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: libgcj/2429: java.text.MessageFormat broken Date: Fri, 30 Mar 2001 20:16:00 -0000 Message-id: <20010331041601.13263.qmail@sourceware.cygnus.com> X-SW-Source: 2001-03/msg00377.html List-Id: The following reply was made to PR libgcj/2429; it has been noted by GNATS. From: Tom Tromey 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 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