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

Lance Andersen lance.andersen at oracle.com
Thu Dec 1 01:07:38 UTC 2016

Hi Joe

Looks OK.

I might suggest a separate issue for the cleanup and just have this bug address the  bug fix

> On Nov 30, 2016, at 4:21 PM, Joe Wang <huizhe.wang at oracle.com> wrote:
> 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

 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>

More information about the core-libs-dev mailing list