From: Mark Wielaard Date: Mon, 17 Jan 2005 23:50:23 +0000 (+0000) Subject: MessageFormat.java (scanFormat): Chain thrown exception. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbc522ef398a62f70767ef3eb5c2fdcc11b622ab;p=gcc.git MessageFormat.java (scanFormat): Chain thrown exception. 2004-12-07 Mark Wielaard * java/text/MessageFormat.java (scanFormat): Chain thrown exception. From-SVN: r93795 --- 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 + + * java/text/MessageFormat.java (scanFormat): Chain thrown exception. + 2005-01-15 Michael Koch 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.