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

A character in Composition Exclusion Table does not match itself.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b119
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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 ----------

        Attachments

          Activity

            People

            • Assignee:
              sherman Xueming Shen
              Reporter:
              ndcosta Nelson Dcosta
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: