|
Quick Lists
|
|
Bug ID:
|
6620632
|
|
Votes
|
0
|
|
Synopsis
|
DTD event is missing entity and notation information
|
|
Category
|
jaxp:stax
|
|
Reported Against
|
|
|
Release Fixed
|
1.4
|
|
State
|
11-Closed,
Verified,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
|
|
Submit Date
|
23-OCT-2007
|
|
Description
|
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)
Posted Date : 2007-10-23 22:55:09.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
Fixed in jaxp on java.net. This is the same fix as that for sjsxp issue 48.
Posted Date : 2007-10-23 23:51:59.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |