|
The method description states that NumberFormatException is thrown if value is out of the Decimal128 range:
https://github.com/mongodb/mongo-java-driver/blob/r3.8.1/bson/src/main/org/bson/types/Decimal128.java#L105
However, later on when it's checking for exponent is throwing AssertionError
https://github.com/mongodb/mongo-java-driver/blob/r3.8.1/bson/src/main/org/bson/types/Decimal128.java#L174
Need to throw NumberFormatException as similarly performed in clampAndRound() method ?
https://github.com/mongodb/mongo-java-driver/blob/r3.8.1/bson/src/main/org/bson/types/Decimal128.java#L214
|