If this behaviour is correct - it should be specified.
=== Here is the minimized test ===
import java.lang.Bignum;
class java_lang_Bignum_pow {
public static void main(String args[]) {
System.out.println(Bignum.ZERO.pow(-1));
}
}
=== Here is the test output ===
0
=== Here is the minimized test ===
import java.lang.Bignum;
class java_lang_Bignum_pow {
public static void main(String args[]) {
System.out.println(Bignum.ZERO.pow(-1));
}
}
=== Here is the test output ===
0
- relates to
-
JDK-4014952 java.lang.Bignum.pow() methods works wrong with non-integral or negative numbers
-
- Closed
-