Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6370703

Incorrect reporting of attributes on START_ELEMENT event.

XMLWordPrintable

    • b72
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b63) Java HotSpot(TM) Client VM (build 1.6.0-rc-b63, mixed mode

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      CROSS POST from: https://sjsxp.dev.java.net/issues/show_bug.cgi?id=5

      With a particular XML document, there seems to be an issue with the reporting of attributes on the START_ELEMENT event.

      Taking into account the DTD declaration, each element with name "para" is
      expected to have a attribute "security". If the attribute isn't declared in the
      XML file, the attribute "security" should be reported with value "u".

      When running the reproducable Sgml.xml, I get as output:

      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 0
      para - nr of attributes: 1
      ----- Attribute #0
      ----- Prefix:
      ----- LocalName: security
      ----- Namespace: null
      ----- Value: c
      Element count: 16
      Done

      REGRESSION. Last worked in version mustang

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      See description
      ACTUAL -
      See description

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Located here:

      https://sjsxp.dev.java.net/nonav/issues/showattachment.cgi/2/issue5.zip
      ---------- END SOURCE ----------

            sreddysunw Sunitha Reddy (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: