DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6681>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6681

Incorrect features are added to recognized features

           Summary: Incorrect features are added to recognized features
           Product: Xerces2-J
           Version: 2.0.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the constructor of org.apache.xerces.parsers.AbstractDOMParser the 
INCLUDE_COMMENTS_FEATURE and CREATE_CDATA_NODES_FEATURE are added to the recognized 
features. These two constants are defined in the same class as:

    protected static final String INCLUDE_COMMENTS_FEATURE = 
Constants.INCLUDE_COMMENTS_FEATURE;

    protected static final String CREATE_CDATA_NODES_FEATURE = 
Constants.CREATE_CDATA_NODES_FEATURE;

Shouldn't there be a Constants.XERCES_FEATURE_PREFIX before each. Like this:

    protected static final String INCLUDE_COMMENTS_FEATURE = 
Constants.XERCES_FEATURE_PREFIX + Constants.INCLUDE_COMMENTS_FEATURE;

    protected static final String CREATE_CDATA_NODES_FEATURE = 
Constants.XERCES_FEATURE_PREFIX + Constants.CREATE_CDATA_NODES_FEATURE;


In the constructor of the org.apache.xerces.jaxp.DocumentBuilderImpl these features 
are set:
        domParser.setFeature(Constants.XERCES_FEATURE_PREFIX +
                             Constants.INCLUDE_COMMENTS_FEATURE,
                             !dbf.isIgnoringComments());
        domParser.setFeature(Constants.XERCES_FEATURE_PREFIX +
                             Constants.CREATE_CDATA_NODES_FEATURE,
                             !dbf.isCoalescing());

This causes a exception that is silently ignored.

Both of those features seem not to be in the documentation 
(http://xml.apache.org/xerces2-j/features.html).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to