Commit dbc522ef by Mark Wielaard Committed by Tom Tromey

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
parent c625c898
2004-12-07 Mark Wielaard <mark@klomp.org>
* java/text/MessageFormat.java (scanFormat): Chain thrown exception.
2005-01-15 Michael Koch <konqueror@gmx.de> 2005-01-15 Michael Koch <konqueror@gmx.de>
PR libgcj/19444 PR libgcj/19444
......
...@@ -283,7 +283,9 @@ public class MessageFormat extends Format ...@@ -283,7 +283,9 @@ public class MessageFormat extends Format
} }
catch (NumberFormatException nfx) 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. // Extract the element format.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment