Mercurial > hg > icedtea8-forest > jaxp
changeset 1636:202d9386f011 jdk8u151-b05
8181327: Better X processing
Reviewed-by: joehw
author | aefimov |
---|---|
date | Mon, 10 Jul 2017 13:49:57 +0100 |
parents | 618d2f0be20e |
children | 53498ccead1c |
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 Fri Jul 14 10:45:10 2017 -0700 +++ 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)