8181327: Better X processing
authorjoehw
Tue, 13 Jun 2017 11:13:56 -0700
changeset 47402 fd5d1d2bc1d4
parent 47401 98e960939ef2
child 47403 a39992e8c9a7
8181327: Better X processing Reviewed-by: dfuchs, lancea
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java
--- a/src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java	Wed Jul 26 11:45:53 2017 -0400
+++ b/src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java	Tue Jun 13 11:13:56 2017 -0700
@@ -71,6 +71,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)