changeset 144:d85b57702d1f

8181327: Better X processing Reviewed-by: joehw
author aefimov
date Mon, 10 Jul 2017 13:49:57 +0100
parents 92e897265138
children ecc6b59536b7
files drop_included/jaxp_src/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)