jaxp
  1. jaxp
  2. JAXP-76

StaX: data corruption when reading Unicode SMP characters in UTF-8 XML

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: current
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      JRE 7u11

      Description

      The attached small XML file contains a chinese character and the first gothic character (U+10330 : http://www.unicode.org/charts/PDF/U10330.pdf)

      When parsing this file using StaX, the attribute value containing the gothic character is corrupted: it contains also the chinese character from the previous attribute.

      See the console output:

      From XML chinese:[-16, -92, -83, -94]
      Expected chinese:[-16, -92, -83, -94]
      From XML gothic:[-16, -92, -83, -94, -16, -112, -116, -80]
      Expected gothic:[-16, -112, -116, -80]

      This issue comes from JOSM bug tracker: http://josm.openstreetmap.de/ticket/3290

        Activity

        Hide
        donvip added a comment -
        Show
        donvip added a comment - Sorry, how do we attach files ? If I am not allowed, they can be found here: http://josm.openstreetmap.de/attachment/ticket/3290/gottic.osm http://josm.openstreetmap.de/attachment/ticket/3290/Test.java
        Hide
        donvip added a comment -

        Does anyone care about this public JIRA ?

        Show
        donvip added a comment - Does anyone care about this public JIRA ?
        Hide
        donvip added a comment - - edited

        This bug has finally been addressed through https://bugs.openjdk.java.net/browse/JDK-8058175. Any chance to see it backported to JDK7 and JDK8?

        Show
        donvip added a comment - - edited This bug has finally been addressed through https://bugs.openjdk.java.net/browse/JDK-8058175 . Any chance to see it backported to JDK7 and JDK8?
        Hide
        Joe Wang added a comment -

        Please note that the JAXP standalone (https://jaxp.java.net/) was retired. Please report issues to <a href="https://bugs.openjdk.java.net">the OpenJDK Bug System</a>.

        Show
        Joe Wang added a comment - Please note that the JAXP standalone ( https://jaxp.java.net/ ) was retired. Please report issues to <a href="https://bugs.openjdk.java.net">the OpenJDK Bug System</a>.

          People

          • Assignee:
            Unassigned
            Reporter:
            donvip
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: