Description
The bytecode member of traversal objects are only shallow copied when a traversal is cloned. This causes issues because any updates to the clone will be propagated to cloned traversal.
gremlin> g = TinkerGraph.open().traversal() ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard] gremlin> traversal = g.V().out();null ==>null gremlin> clonedTraversal = traversal.asAdmin().clone();null ==>null gremlin> clonedTraversal.out().out();null ==>null gremlin> traversal.getBytecode() ==>[[], [V(), out(), out(), out()]] gremlin> clonedTraversal.getBytecode() ==>[[], [V(), out(), out(), out()]]
Attachments
Issue Links
- links to