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

Greek collator blows up

XMLWordPrintable

    • 1.2beta3
    • x86
    • windows_nt
    • Not verified



      Name: bb33257 Date: 11/25/97


      In the current JDK 1.1.6 build, we seem to have
      some sort of obscure problem in the Greek collator.

      To reproduce, do the following:

      Collator collator = Collator.getInstance(new Locale("el", "GR", ""));
      collator.setStrength(Collator.TERTIARY);
      int dummy = collator.compare("\u03D4", "\u03AB");

      The call to Collator.compare() above will blow up
      with a NullPointerException. It appears that if
      you compare any character with \u03AB, it fails,
      sometimes with a NullPointerException, and
      sometimes with an ArrayIndexOutOfBoundsException.
      For what it's worth, \u03AB (upsilon-dialytika)
      and \u03D4 (upsilon-hook-diaeresis) are specified
      in the rules as comparing identical.

      I haven't done an exhaustive test, but from my
      preliminary looking around, it appears that this
      is the only set of collation rules that blows up.
      ======================================================================

            joconnersunw John Oconner (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: