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

A character in Composition Exclusion Table does not match itself.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 6
    • core-libs
    • b119
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_07"
      Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
      Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      A character in Composition Exclusion Table does not match itself in CANON_EQ mode.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile and run the program.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      true
      true
      ACTUAL -
      false
      true

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package sample;

      import java.util.regex.*;

      public class RegexTest2 {
      static final Pattern pt1 = Pattern.compile("\u2ADC", Pattern.CANON_EQ);

      public static void main(String[] args) {
      System.out.println(pt1.matcher("\u2ADC").matches());
      System.out.println(pt1.matcher("\u2ADD\u0338").matches()); // NFC && NFD
      }
      }

      ---------- END SOURCE ----------

            sherman Xueming Shen
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: