-
Bug
-
Resolution: Fixed
-
P4
-
6
-
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 ----------
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 ----------