RFR (JAXP) 8167340: XMLStreamReader.getElementText return corrupt content when size of element is > 8192

Joe Wang huizhe.wang at oracle.com
Wed Nov 30 21:21:20 UTC 2016


Hi,

Please review an one-line fix and a bunch of cleanups.

The reported issue was caused by a missed setting when the 
XMLStreamReader initializes the XML 1.1 scanner, so while the changeset 
involved 350 lines, the fix is really just the following:

XMLStreamReaderImpl.java:
@@ -605,11 +604,12 @@
...
+        fEntityScanner.registerListener(fScanner);


All other changes are cleanups, warnings. And BTW, warnings in the jaxp 
repo have come down from 5230 in 2015 to 3265, a result of a bit of 
cleanups here and there when we touch those classes. Still a long way to 
go, and it shows we may need to have a few dedicated patches.

JBS: https://bugs.openjdk.java.net/browse/JDK-8167340
webrevs: http://cr.openjdk.java.net/~joehw/jdk9/8167340/webrev/

Thanks,
Joe


More information about the core-libs-dev mailing list