commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30597] - [configuration] HierarchicalConfigurationXMLReader stores comments as text nodes
Date Fri, 13 Aug 2004 18:50:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30597>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30597

[configuration] HierarchicalConfigurationXMLReader stores comments as text nodes





------- Additional Comments From oliver.heger@t-online.de  2004-08-13 18:50 -------
The problem seems to be in HierarchicalXMLConfiguration which also stores
comments as configuration keys. In the constructHierarchy() method there is the
statement

    else if (w3cNode instanceof CharacterData)

IMO it should be sufficient to change this into

    else if (w3cNode instanceof Text)

(because Comment is a subinterface of CharacterData, too).

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message