Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4358591

Linux: classic vm hangs invoking RuleBasedCollator constructor

    • 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.

      ======================================================================

      ======================================================================

            caustinsunw Calvin Austin (Inactive)
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: