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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.1, 1.1.2, 1.2.0
    • 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.
      ======================================================================

            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: