Modify

Opened 11 years ago

Closed 11 years ago

Last modified 6 years ago

#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 Don-vip, 11 years ago

Keywords: java7 unicode added
Priority: minornormal

Damn. It would mean that #8505 is not fixed with Java 7.

comment:2 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 6094/josm:

fix #8918 - Handle Zero width space char since Java 7 changes related to Unicode 6.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.