-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8u20
-
Component/s: core-libs
-
b45
-
x86_64
-
windows_7
-
Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8084098 | emb-9 | Brian Burkhalter | P4 | Resolved | Fixed | team |
A DESCRIPTION OF THE REQUEST :
Some of BigDecimal's constructors, notably "BigDecimal(char[] in, int offset, int len, MathContext mc)" throw NumberFormatException with an empty message. The exception message should indicate what String could not be parsed (and, if possible, why).
JUSTIFICATION :
Including the invalid String in the exception would help developers debug parsing problems quicker when the input string is dynamically constructed, for example when parsing data off a website.
Some of BigDecimal's constructors, notably "BigDecimal(char[] in, int offset, int len, MathContext mc)" throw NumberFormatException with an empty message. The exception message should indicate what String could not be parsed (and, if possible, why).
JUSTIFICATION :
Including the invalid String in the exception would help developers debug parsing problems quicker when the input string is dynamically constructed, for example when parsing data off a website.
- backported by
-
JDK-8084098 BigDecimal should populate NumberFormatException message
-
- Resolved
-