Closes gh-26875
@ -292,7 +292,7 @@ class StaxEventXMLReader extends AbstractStaxXMLReader {
private void handleDtd(DTD dtd) throws SAXException {
if (getLexicalHandler() != null) {
javax.xml.stream.Location location = dtd.getLocation();
Location location = dtd.getLocation();
getLexicalHandler().startDTD(null, location.getPublicId(), location.getSystemId());
}