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
This commit is contained in:
Mark Wielaard 2005-01-17 23:50:23 +00:00 committed by Tom Tromey
parent c625c898d1
commit dbc522ef39
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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.