8181327: Better X processing

Reviewed-by: dfuchs, lancea
This commit is contained in:
Joe Wang 2017-06-13 11:13:56 -07:00
parent 4dc1883cb7
commit 7ec06eee41

View File

@ -71,6 +71,14 @@ public abstract class PredicatedNodeTest extends NodeTest implements SubContextL
{ {
stream.defaultReadObject(); stream.defaultReadObject();
m_predicateIndex = -1; 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(); resetProximityPositions();
} }
catch (ClassNotFoundException cnfe) catch (ClassNotFoundException cnfe)