JDK116N: Collator.getInstance causes exception when JIT ON

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P2
    • None
    • Affects Version/s: 1.1.6
    • Component/s: vm-legacy
    • generic, x86
    • generic, windows_95, windows_nt

      The attached test code fails on WIN32 platforms.
      This problem was found in the regression testing of JDK116.

      D:\iwabuchi>java CollationKeyTest
      java.lang.ArrayIndexOutOfBoundsException: 5 >= 5
              at java.lang.Throwable.<init>(Compiled Code)
              at java.util.Vector.elementAt(Compiled Code)
              at java.text.RuleBasedCollator.getContractValues(Compiled Code)
              at java.text.RuleBasedCollator.getContractValues(RuleBasedCollator.java:
      926)
              at java.text.RuleBasedCollator.addExpandOrder(Compiled Code)
              at java.text.RuleBasedCollator.build(Compiled Code)
              at java.text.RuleBasedCollator.<init>(Compiled Code)
              at java.text.Collator.getInstance(Compiled Code)
              at CollationKeyTest.main(Compiled Code)

      D:\iwabuchi>java -nojit CollationKeyTest
      ABC : ABC => OK
      ABC : ABB => OK
      ABC : ABD => OK

            Assignee:
            Deepa Viswanathan (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: