This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: mergelet for MessageFormat


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.


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