8273968: JCK javax_xml tests fail in CI

Reviewed-by: naoto, lancea
This commit is contained in:
Joe Wang 2021-09-24 18:55:03 +00:00 committed by Henry Jen
parent 9c02c4c55f
commit abf6fdd75a

View File

@ -57,7 +57,7 @@ import java.util.Locale;
* @author Arnaud Le Hors, IBM
* @author K.Venugopal Sun Microsystems
*
* @LastModified: Aug 2021
* @LastModified: Sep 2021
*/
public class XMLEntityScanner implements XMLLocator {
@ -2145,7 +2145,7 @@ public class XMLEntityScanner implements XMLLocator {
// how this information is used is determined by the caller of this method
counted = false;
if ((c == '\n' || c == '\r') ||
(version == XML_VERSION_1_1 && (c == 0x85 || c == 0x2028))) {
(version == XML_VERSION_1_1 && (c == 0x85 || c == 0x2028) && isExternal)) {
do {
c = fCurrentEntity.ch[fCurrentEntity.position++];
if ((c == '\n' || c == '\r') ||