# HG changeset patch # User aefimov # Date 1499690997 -3600 # Node ID 9be9a5a63e2d5cba60ea7596866391c422a87c61 # Parent 9a5675f6421ef4fb5aae2d1fbcce24a15fb85f99 8181327: Better X processing Reviewed-by: joehw diff -r 9a5675f6421e -r 9be9a5a63e2d src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java --- 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)