#8918 closed defect (fixed)
UtilsTest failed in Java7 due to character \u200B Zero width space
Reported by: | AlfonZ | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | java7 unicode | Cc: |
Description
UtilsTest passed in my Java 6u45 and failed in Java 7u25.
I have narrowed it down to character \u200B
Zero width space.
In Java 6 Character.isWhitespace()
and Character.isSpaceChar()
return true
for it, in Java 7 they return false
.
Java 6's Character
is based on Unicode 4.0, Java 7's on Unicode 6.0 - http://openjdk.java.net/projects/jdk7/features/#f497.
Unicode 6.0 Standard Annex #44:
For example, U+200B ZERO WIDTH SPACE was originally classified as a space character (General_Category=Zs), but it was reclassified as a Format character (General_Category=Cf) to clearly distinguish it from space characters in its function as a format control for line breaking.
...
Changed the value for U+200B ZERO WIDTH SPACE from wb=Format to wb=Other.
Attachments (0)
Change History (2)
comment:1 by , 11 years ago
Keywords: | java7 unicode added |
---|---|
Priority: | minor → normal |
Damn. It would mean that #8505 is not fixed with Java 7.