Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
Description
According to documentation NumberFormatException should be thrown when BigDecimal is out of range for Decimal128 but looking at the code AssertionError is being used instead :
if ((exponent < MIN_EXPONENT) || (exponent > MAX_EXPONENT)) { |
throw new AssertionError("Exponent is out of range for Decimal128 encoding: " + exponent); |
}
|
Attachments
Issue Links
- is duplicated by
-
JAVA-2982 Decimal128 is throwing AssertionError instead of NumberFormatException
-
- Closed
-