summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-01-17 23:50:23 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-01-17 23:50:23 +0000
commitdbc522ef398a62f70767ef3eb5c2fdcc11b622ab (patch)
tree3edcca52629ac1bdaec5188efab483f0e249a222 /libjava
parentc625c898d13ffee04ef798c56408ddc6f0867278 (diff)
downloadgcc-dbc522ef398a62f70767ef3eb5c2fdcc11b622ab.tar.gz
MessageFormat.java (scanFormat): Chain thrown exception.
2004-12-07 Mark Wielaard <mark@klomp.org> * java/text/MessageFormat.java (scanFormat): Chain thrown exception. From-SVN: r93795
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/java/text/MessageFormat.java4
2 files changed, 7 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 14a105a5c9c..eb7f0dea951 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java
index 787bc6ffea6..171fffe6d25 100644
--- a/libjava/java/text/MessageFormat.java
+++ b/libjava/java/text/MessageFormat.java
@@ -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.