[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug #777] bug in java.text.MessageFormat.format(Object[], StringBuffer,

From: nobody
Subject: [Bug #777] bug in java.text.MessageFormat.format(Object[], StringBuffer, FieldPosition)
Date: Fri, 28 Jun 2002 16:41:14 -0400

=================== BUG #777: FULL BUG SNAPSHOT ===================

Submitted by: None                      Project: classpath                      
Submitted on: 2002-Jun-28 16:41
Severity:  5 - Major                    Resolution:  None                       
Assigned to:  None                      Status:  Open                           
Platform Version:  Red Hat 7.x          

Summary:  bug in java.text.MessageFormat.format(Object[], StringBuffer, 

Original Submission:  A spurious IllegalArgumentException is thrown if there 
are multiple ChoiceFormats in the pattern.  I've attached a test program which 
reproduces the bug.  Here is a patch to (hopefully) fix the problem:

diff -u -r1.1
---  2002/06/24 13:56:20     1.1
+++  2002/06/28 20:34:52
@@ -381,9 +381,10 @@
                MessageFormat mf = new MessageFormat ();
-               formatter = mf;
+               mf.format(arguments, appendBuf, ignore);
-           formatter.format(thisArg, appendBuf, ignore);
+           else
+             formatter.format(thisArg, appendBuf, ignore);

No Followups Have Been Posted

No files currently attached

For detailed info, follow this link:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]