-
Bug
-
Resolution: Fixed
-
P2
-
1.0.2
-
1.1
-
sparc
-
solaris_2.5
-
Not verified
new java.lang.Bignum(Long.MIN_VALUE) creates Bignum object
with value -1237940030062008238044348416 instead of -9223372036854775808
Minimized test demonstrating the bug:
class java_lang_Bignum_constructor_2 {
public static void main(String args[]) {
System.out.println(new java.lang.Bignum(Long.MIN_VALUE));
// will print "-1237940030062008238044348416"
// instead of "-9223372036854775808"
}
}
with value -1237940030062008238044348416 instead of -9223372036854775808
Minimized test demonstrating the bug:
class java_lang_Bignum_constructor_2 {
public static void main(String args[]) {
System.out.println(new java.lang.Bignum(Long.MIN_VALUE));
// will print "-1237940030062008238044348416"
// instead of "-9223372036854775808"
}
}
- relates to
-
JDK-4009252 java.lang.Bignum constructor(int) works wrong with Integer.MIN_VALUE
-
- Closed
-