This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: mergelet for MessageFormat
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 17 Jan 2005 16:44:00 -0700
- Subject: Patch: FYI: mergelet for MessageFormat
- Reply-to: tromey at redhat dot com
I'm checking this in.
This re-merges MessageFormat with Classpath. I specifically wanted
this patch as having a chained exception here helps with an Eclipse
bug I'm looking into.
Tom
Index: ChangeLog
from Mark Wielaard <mark@klomp.org>
* java/text/MessageFormat.java (scanFormat): Chain thrown exception.
Index: java/text/MessageFormat.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/MessageFormat.java,v
retrieving revision 1.20
diff -u -r1.20 MessageFormat.java
--- java/text/MessageFormat.java 24 Nov 2004 12:22:32 -0000 1.20
+++ java/text/MessageFormat.java 17 Jan 2005 23:47:35 -0000
@@ -283,7 +283,9 @@
}
catch (NumberFormatException nfx)
{
- throw new IllegalArgumentException("Failed to parse integer string");
+ IllegalArgumentException iae = new IllegalArgumentException(pat);
+ iae.initCause(nfx);
+ throw iae;
}
// Extract the element format.