sjsxp
  1. sjsxp
  2. SJSXP-48

DTD event is missing entity and notation information

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      48

      Description

      DTDEvent instances constructed via event reader are missing the notation and
      entity declaration information. Fortunately both are available via stream
      reader; so modifying XMLEntityManager's DTDEvent construction with code similar
      to this:

      DTDEvent dtd = new DTDEvent(streamReader.getText());
      List ents = (List)
      streamReader.getProperty(PropertyManager.STAX_ENTITIES);
      if (ents != null)

      { dtd.setEntities(ents); }

      List notations = (List)
      streamReader.getProperty(PropertyManager.STAX_NOTATIONS);
      if (notations != null)

      { dtd.setNotations(notations); }

      event = dtd;
      }

      seems to resolve the problem (StaxTest, TestEventReader#testValidDtdEvent passes
      with the fix)

        Activity

        Hide
        Joe Wang added a comment -

        Assign to me.

        Show
        Joe Wang added a comment - Assign to me.
        Hide
        Joe Wang added a comment -

        Fixed. Thanks Tatu. This fix will also be in JAXP 1.4.3 and considered for a
        jdk6 update release.

        Show
        Joe Wang added a comment - Fixed. Thanks Tatu. This fix will also be in JAXP 1.4.3 and considered for a jdk6 update release.

          People

          • Assignee:
            Joe Wang
            Reporter:
            cowtowncoder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: