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

JDK116N: Collator.getInstance causes exception when JIT ON

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.1.6
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: