-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta3
-
generic
-
generic
-
Verified
The specs for BigDecimal string constructor state that "The value of the exponenet must lie between Integer.MIN_VALUE and Integer.MAX_VALUE, inclusive." However, a call
BigDecimal("1E" + Integer.MIN_VALUE)
fails with a java.lang.ArithmeticException: Negative exponent from the BigInteger.pow method.
Either the spec should be changed on the JavaDoc should be modified.
BigDecimal("1E" + Integer.MIN_VALUE)
fails with a java.lang.ArithmeticException: Negative exponent from the BigInteger.pow method.
Either the spec should be changed on the JavaDoc should be modified.
- relates to
-
JDK-4831095 BigDecimal constructor doesn't return exception with invalid format in 1.3.1_0X
- Closed