Test case valid-not-sa-031: gnu.xml.aelfred2.XmlReader Failed

Test case valid-not-sa-031: gnu.xml.aelfred2.XmlReader Failed

Expands a general entity which contains a CDATA section with what looks like a markup declaration (but is just text since it's in a CDATA section).

<!DOCTYPE doc SYSTEM "031-1.ent">
<doc>&e;</doc>
Expected resultActual result for gnu.xml.aelfred2.XmlReader
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/not-sa/031-1.ent</systemID>
    </resolveEntity>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/not-sa/031-2.ent</systemID>
    </resolveEntity>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <char>&lt;</char>
    <char>!</char>
    <char>A</char>
    <char>T</char>
    <char>T</char>
    <char>L</char>
    <char>I</char>
    <char>S</char>
    <char>T</char>
    <char>\s</char>
    <char>d</char>
    <char>o</char>
    <char>c</char>
    <char>\s</char>
    <char>a</char>
    <char>1</char>
    <char>\s</char>
    <char>C</char>
    <char>D</char>
    <char>A</char>
    <char>T</char>
    <char>A</char>
    <char>\s</char>
    <char>"</char>
    <char>v</char>
    <char>1</char>
    <char>"</char>
    <char>&gt;</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/not-sa/031-1.ent</systemID>
    </resolveEntity>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/not-sa/031-2.ent</systemID>
    </resolveEntity>
    <endDocument/>
    <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 &gt;= 0</bug>
</ConformanceResults>