-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
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); }
- is duplicated by
-
JAVA-2982 Decimal128 is throwing AssertionError instead of NumberFormatException
- Closed