changeset 1675:2d2d15790969

8181327: Better X processing Reviewed-by: joehw
author aefimov
date Mon, 10 Jul 2017 13:49:57 +0100
parents 583cd62fbe86
children ce9dcdef6f40
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	Mon Jul 03 16:00:36 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)