Commit Graph

3 Commits

Author SHA1 Message Date
Brian Burkhalter
0f8476eff8 8041683: Catch OutOfMemoryError in BitLengthOverflow and DoubleValueOverflow
Java/math/BigInteger/BitLengthOverflow.java failing with OOME

Reviewed-by: alanb
2014-04-29 09:42:16 -07:00
Brian Burkhalter
f707a2fd5a 8027595: Enable BigInteger overflow tests in JTREG
Remove space in @test tags, remove OOME catches, add @run tag for StringConstructorOverflow.

Reviewed-by: mduigou
2014-04-18 14:03:46 -07:00
Dmitry Nadezhin
9e7ba92bff 6910473: java.math.BigInteger.bitLength() may return negative "int" on large numbers
8021203: BigInteger.doubleValue/floatValue returns 0.0 instead of Infinity
8021204: Constructor BigInteger(String val, int radix) doesn't detect overflow
8022780: Incorrect BigInteger division because of MutableBigInteger.bitLength() overflow

Prevent construction of overflowed BigIntegers.

Reviewed-by: bpb, darcy, psandoz
2013-10-30 17:45:12 -07:00