Added VertexProgramStrategy to TranslationStrategy

This change ensures proper sort order in strategies and prevents failing tests 
in some environments. CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/b2108408
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/b2108408
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/b2108408

Branch: refs/heads/TINKERPOP-1534
Commit: b210840812240d6d489c9994b78d9059804ed2e9
Parents: ab48b3f
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Nov 2 06:55:02 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Nov 2 06:55:02 2016 -0400

----------------------------------------------------------------------
 .../traversal/strategy/decoration/TranslationStrategy.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/b2108408/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/TranslationStrategy.java
----------------------------------------------------------------------
diff --git 
a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/TranslationStrategy.java
 
b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/TranslationStrategy.java
index 6b06d60..c3aa9e0 100644
--- 
a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/TranslationStrategy.java
+++ 
b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/TranslationStrategy.java
@@ -22,6 +22,7 @@ package 
org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration;
 import org.apache.tinkerpop.gremlin.jsr223.GremlinScriptEngine;
 import org.apache.tinkerpop.gremlin.jsr223.SingleGremlinScriptEngineManager;
 import 
org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.ProgramVertexProgramStep;
+import 
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy;
 import 
org.apache.tinkerpop.gremlin.process.remote.traversal.strategy.decoration.RemoteStrategy;
 import org.apache.tinkerpop.gremlin.process.traversal.Bytecode;
 import org.apache.tinkerpop.gremlin.process.traversal.Step;
@@ -58,7 +59,8 @@ public final class TranslationStrategy extends 
AbstractTraversalStrategy<Travers
             SackStrategy.class,
             SideEffectStrategy.class,
             SubgraphStrategy.class,
-            RemoteStrategy.class));
+            RemoteStrategy.class,
+            VertexProgramStrategy.class));
 
     public TranslationStrategy(final TraversalSource traversalSource, final 
Translator translator) {
         this.traversalSource = traversalSource;

Reply via email to