JDK-4964339 : HTML parser doesn't handle hexadecimal numeric character references
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2003-12-05
  • Updated: 2004-10-13
  • Resolved: 2004-09-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u4Fixed 6 betaFixed
Description
Name: anR10225			Date: 12/05/2003


  HTML parser doesn't handle such references as '&#xH;' where H is a
hexadecimal number.
  The following test case reproduces the problem:
        JEditorPane p = new JEditorPane("text/html", "Z");
        Document d = p.getDocument();
        String cont = d.getText(0, d.getLength());
        System.out.println("'" + cont + "'");

letter 'Z' here should be printed here instead of 'Z'

======================================================================
###@###.### 10/13/04 17:55 GMT

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon mustang FIXED IN: mustang INTEGRATED IN: mustang
14-09-2004

EVALUATION Name: anR10225 Date: 12/05/2003 the functionality for parsing hexadecimal entity reference should be added to the javax.swing.text.html.parser.Parser.parseEntityReference() method. The syntax of this reference should be the following: &#[xX][0-9a-fA-F]+; Keyword: html ======================================================================
14-09-2004