diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-17 23:50:23 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-17 23:50:23 +0000 |
commit | 71cb54a6d91d4c295d0b5c889c8c36f1cf6fc770 (patch) | |
tree | 3edcca52629ac1bdaec5188efab483f0e249a222 /libjava/java/text | |
parent | b753e47b6fd8d4e0ad4e1e8edcf1b13de2af2c9d (diff) | |
download | ppe42-gcc-71cb54a6d91d4c295d0b5c889c8c36f1cf6fc770.tar.gz ppe42-gcc-71cb54a6d91d4c295d0b5c889c8c36f1cf6fc770.zip |
2004-12-07 Mark Wielaard <mark@klomp.org>
* 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
Diffstat (limited to 'libjava/java/text')
-rw-r--r-- | libjava/java/text/MessageFormat.java | 4 |
1 files changed, 3 insertions, 1 deletions
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. |