OSDN Git Service

2004-12-07 Mark Wielaard <mark@klomp.org>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jan 2005 23:50:23 +0000 (23:50 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jan 2005 23:50:23 +0000 (23:50 +0000)
* java/text/MessageFormat.java (scanFormat): Chain thrown exception.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93795 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/text/MessageFormat.java

index 14a105a..eb7f0de 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-07  Mark Wielaard  <mark@klomp.org>
+
+       * java/text/MessageFormat.java (scanFormat): Chain thrown exception.
+
 2005-01-15  Michael Koch  <konqueror@gmx.de>
 
        PR libgcj/19444
index 787bc6f..171fffe 100644 (file)
@@ -283,7 +283,9 @@ public class MessageFormat extends Format
       }
     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.