aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorasaha <none@none>2017-07-17 14:07:52 -0700
committerasaha <none@none>2017-07-17 14:07:52 -0700
commit3dfab2c35c6f597b6f388d5d5533e22fd2d0792e (patch)
tree7720987b44e4730082499e07f40d330f45122da7 /src
parent979527635b03188076dec87b9a30521917898d0a (diff)
parentff8f5a277f0dfae2e1c16379c2d04a15a81f7171 (diff)
downloadjdk8u_jaxp-3dfab2c35c6f597b6f388d5d5533e22fd2d0792e.tar.gz
Merge
Diffstat (limited to 'src')
-rw-r--r--src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java b/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java
index 965f3f3..ec6d103 100644
--- a/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java
+++ b/src/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java
@@ -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 @@ public abstract class PredicatedNodeTest extends NodeTest implements SubContextL
{
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)