mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 04:15:04 +00:00
8172875: Resizing XML parse trees test update
Reviewed-by: dfuchs, lancea
This commit is contained in:
parent
8af0f26252
commit
0bbe6371cf
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -610,6 +610,14 @@ public class XMLStreamReaderImpl implements javax.xml.stream.XMLStreamReader {
|
||||
switchToXML11Scanner();
|
||||
}
|
||||
|
||||
if (fEventType == XMLStreamConstants.CHARACTERS ||
|
||||
fEventType == XMLStreamConstants.ENTITY_REFERENCE ||
|
||||
fEventType == XMLStreamConstants.PROCESSING_INSTRUCTION ||
|
||||
fEventType == XMLStreamConstants.COMMENT ||
|
||||
fEventType == XMLStreamConstants.CDATA) {
|
||||
fEntityScanner.checkNodeCount(fEntityScanner.fCurrentEntity);
|
||||
}
|
||||
|
||||
return fEventType;
|
||||
} catch (IOException ex) {
|
||||
// if this error occured trying to resolve the external DTD subset
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user