--- old/src/java.base/share/classes/jdk/internal/util/xml/impl/Parser.java 2018-11-13 18:15:09.803365789 -0800 +++ new/src/java.base/share/classes/jdk/internal/util/xml/impl/Parser.java 2018-11-13 18:15:09.118303453 -0800 @@ -650,6 +650,8 @@ * @exception IOException */ private void dtdsub() throws Exception { + startInternalSub(); // reports the event before parsing the subset + char ch; for (short st = 0; st >= 0;) { ch = getch(); @@ -2231,6 +2233,13 @@ throws SAXException; /** + * Reports the start of DTD internal subset. + * + * @throws SAXException if the receiver throws SAXException + */ + public abstract void startInternalSub () throws SAXException; + + /** * Reports a comment. * * @param text The comment text starting from first charcater.