-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0
-
sparc
-
solaris_2.5.1
Name: akC57697 Date: 05/12/99
The java.math.BigInteger c-tor hangs in JDK1.3C under solaris and win32.
--------------------------------8-<---------------------------------
public class Test {
public static void main(String[] argv) {
java.util.Random rnd = new java.util.Random();
java.math.BigInteger n;
for (int i = 2; i <= 20; i++) {
for (int c = 0; c <= 10; c++) {
n = new java.math.BigInteger(i, c, rnd); // Create BigInteger
}
}
System.out.println("OKAY");
return;
}
}
--------------------------------8-<---------------------------------
Output:
(###@###.###): jdk1.2
(###@###.###): java Test
OKAY
(###@###.###): jdk1.2.2
(###@###.###): java Test
OKAY
(###@###.###): jdk1.3
(###@###.###): java Test
^C
java full version "JDK-1.3-C"
(truss -f -l -e -a java Test
...
22793/1: brk(0x00142C98) = 0
22793/1: brk(0x00146C98) = 0
22793/1: lseek(4, 2085117, SEEK_SET) = 2085117
22793/1: read(4, " P K0304\n\0\0\0\0\0\r10".., 63) = 63
22793/1: lseek(4, 2085180, SEEK_SET) = 2085180
22793/1: read(4, "CAFEBABE\003\0 -\0EC0380".., 13143) = 13143
^C
)
======================================================================
- duplicates
-
JDK-4233669 Kestrel build "B" fails api/java_math/BigInteger/manual.html#Ctor
- Closed