Collator thinks "black-bird" == "black"

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P2
    • None
    • Affects Version/s: 1.1, 1.1.2, 1.2.0
    • Component/s: core-libs
    • generic, x86
    • generic, windows_nt



      Name: bb33257 Date: 05/21/97


      Collator collat = Collator.getInstance();
      if (collat.equals("black-bird","black")) {
        System.out.println("black-bird == black");
      }

      This always prints out that the two strings are equal, even
      though they obviously aren't. I believe it has something
      to do with the hyphen.
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: