Hello,

please review the fix for 6836089: Swing HTML parser can't properly decode codepoints outside the Unicode Plane 0 into a surrogate pair. This is a forward port from JDK6 (fixed escalated issue, fix integrated) to JDK7.

The issue is a defect in Swing HTML Parser: if the codepoint is outside BMP (Unicode Plain 0), Parser incorrectly decodes codepoint into surrogate pair. The fix is to use Character.toChars() method if codepoint value is greater than upper bound of BMP.

Webrev: http://cr.openjdk.java.net/~vkarnauk/6836089/webrev.00/
Bug description: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6836089

Regards,
- Vlad

Reply via email to