Mercurial > hg > openjdk > jdk7u > jaxp
changeset 1258:9be9a5a63e2d
8181327: Better X processing
Reviewed-by: joehw
author | aefimov |
---|---|
date | Mon, 10 Jul 2017 13:49:57 +0100 |
parents | 9a5675f6421e |
children | b968cde9048f |
files | src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java Thu Aug 03 07:27:55 2017 +0100 +++ b/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java Mon Jul 10 13:49:57 2017 +0100 @@ -1,6 +1,5 @@ /* - * reserved comment block - * DO NOT REMOVE OR ALTER! + * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. */ /* * Copyright 1999-2004 The Apache Software Foundation. @@ -70,6 +69,14 @@ { stream.defaultReadObject(); m_predicateIndex = -1; + + /** + * Initialize to the declared value. + * As noted at declaration, this variable is used only for clones for getLastPos, + * it should have been excluded from serialization. For compatibility, we'll + * keep it as is but initializing to the declared value. + */ + m_predCount = -1; resetProximityPositions(); } catch (ClassNotFoundException cnfe)