# HG changeset patch # User aefimov # Date 1499690997 -3600 # Node ID d85b57702d1ff287606c27985c0b0584a302de76 # Parent 92e8972651387c8479486baf4e8a9a36f921dab2 8181327: Better X processing Reviewed-by: joehw diff -r 92e897265138 -r d85b57702d1f drop_included/jaxp_src/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java --- a/drop_included/jaxp_src/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java Wed Aug 30 15:42:01 2017 +0300 +++ b/drop_included/jaxp_src/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)