RFR(JDK12/JAXP/java.xml) 8209615: ParseError in XMLEventReader on a valid input (original) (raw)

Joe Wang huizhe.wang at oracle.com
Tue Aug 21 18:17:16 UTC 2018


Hi,

Please review a patch for a regression that was introduced in JDK 9 b147 by the patch for JDK-8158619[1]. Prior to JDK-8158619, the JDK parser returns all contiguous character data in a single chunk. After the patch then, the parser would return partially if the data is not read completely in the current buffer. Before it returns however, it should have maintained the state so that it could continue parsing as CDATA for the next read. What's missing in the JDK-8158619 therefore was to set the state explicitly to CDATA. Without doing so, the parser would attempt to read the beginning of the next buffer to determine the state, that sometimes (as in this case) could be wrong.

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

[1] https://bugs.openjdk.java.net/browse/JDK-8158619

Thanks, Joe



More information about the core-libs-dev mailing list