-
Bug
-
Resolution: Fixed
-
P3
-
6
-
1.4
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2185505 | 7 | Joe Wang | P3 | Closed | Fixed | m05 |
JDK-2160539 | 6u7 | Abhijit Saha | P2 | Resolved | Fixed | b01 |
JDK-2164401 | OpenJDK6 | Abhijit Saha | P3 | Resolved | Fixed | b11 |
sjsxp issue 48:
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)
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)
- backported by
-
JDK-2160539 sjsxp issue 48: DTD event is missing entity and notation information
-
- Resolved
-
-
JDK-2164401 sjsxp issue 48: DTD event is missing entity and notation information
-
- Resolved
-
-
JDK-2185505 sjsxp issue 48: DTD event is missing entity and notation information
-
- Closed
-