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

String.CASE_INSENSITIVE_ORDER is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.0
    • core-libs
    • None
    • sparc
    • solaris_2.6

      The Comparator String.CASE_INSENSITIVE_ORDER is wrong. It assumes that mapping characters to lower case is a correct way to ignore case. If this were so, regionMatches with ignore case would do this. It does not. This bug affects compareToIgnoreCase, and violates the spec. Unicode is not ASCII.

            jjb Josh Bloch
            karnoldsunw Kenneth Arnold (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: