diff options
author | Mark Wielaard <mark@klomp.org> | 2005-01-17 23:50:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-01-17 23:50:23 +0000 |
commit | dbc522ef398a62f70767ef3eb5c2fdcc11b622ab (patch) | |
tree | 3edcca52629ac1bdaec5188efab483f0e249a222 /libjava | |
parent | c625c898d13ffee04ef798c56408ddc6f0867278 (diff) | |
download | gcc-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/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/java/text/MessageFormat.java | 4 |
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. |