Test case encoding07: gnu.xml.aelfred2.XmlReader Failed

Test case encoding07: gnu.xml.aelfred2.XmlReader Failed

Text declarations (which optionally begin any external entity) are required to have "encoding=...".

<!DOCTYPE root [
    <!ELEMENT root EMPTY>

    <!--
	reusing this entity; it's got no markup decls,
	so it's legal except for a missing "encoding=...".
    -->
    <!ENTITY empty SYSTEM "dtd07.dtd">
]>
<root>&empty;</root>
Expected resultActual result for gnu.xml.aelfred2.XmlReader
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID>
    </resolveEntity>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <endDocument/>
    <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 &gt;= 0</bug>
</ConformanceResults>