JDK-8025660 : DOM parser does not honor DocumentBuilderFactory.setExpandEntityReferences(false)
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 6u37,7-pool,8
  • Priority: P2
  • Status: Resolved
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2013-09-30
  • Updated: 2013-10-28
  • Resolved: 2013-10-28
Related Reports
Relates :  
Description
SHORT SUMMARY: DOM parser does not honor DocumentBuilderFactory.setExpandEntityReferences(false).
.
INDICATORS:
Entity references is expanded during the parsing if there was a call to DocumentBuilderFactory.setExpandEntityReferences(false)
.
COUNTER INDICATORS:
Entity references shouldn't be expanded during the parsing and should remain in '&<ref>' form.
 
TRIGGERS:
 
KNOWN WORKAROUND:
 
PRESENT SINCE:

HOW TO VERIFY: Run the test associated with the bug in bugdb
 
NOTES FOR SE: None
 
REGRESSION: No
Comments
This is not an issue: setExpandEntityReferences = true means expand, or "resolve" the entity reference, that is, no EntityReference node. setExpandEntityReferences = false, then will instruct the parser to keep EntityReference node in the DOM tree. Please, refer to JDK-4762733.
28-10-2013