-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
None
-
1.3.0
-
x86
-
linux
Name: kaC94536 Date: 08/02/2000
The following test shows that classic VM hangs invoking RuleBasedCollator
constructor:
//----------------------------- test.java ----------------------------//
import java.text.*;
public class test {
public static void main(String argv[]) {
String[][] values = {{"< c; C < y; Y < 5 < 2", "", "c", "C", "cC", "Cc"}};
for (int i = 0; i < 1000; i++) {
try {
System.out.print("+");
RuleBasedCollator r1 = new RuleBasedCollator(values[0][0]);
RuleBasedCollator r3 = new RuleBasedCollator(values[0][0]);
RuleBasedCollator r4 = new RuleBasedCollator(values[0][0]);
RuleBasedCollator r5 = new RuleBasedCollator(values[0][0]);
RuleBasedCollator r6 = new RuleBasedCollator(values[0][0]);
} catch (Exception e) {
System.out.println(e);
}
}
}
}
//--------------------------------------------------------------------//
The failure is reproducible under Linux RedHat 6.1 with Enlightenment window
manager.
JDK version is:
linux-10$ java -classic -version
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-b12)
Classic VM (build 1.3.0rc1-b12, green threads, nojit)
JCK test api/java_text/RuleBasedCollator/descriptions.html fails due to
this bug.
======================================================================
======================================================================