You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/10/24 21:40:07 UTC
tinkerpop git commit: Realized that static blocks require the class
to be loaded -- not just rererenced. dah.
Repository: tinkerpop
Updated Branches:
refs/heads/TINKERPOP-1389 7bf88ebe4 -> 3ed9aeefc
Realized that static blocks require the class to be loaded -- not just rererenced. dah.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/3ed9aeef
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/3ed9aeef
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/3ed9aeef
Branch: refs/heads/TINKERPOP-1389
Commit: 3ed9aeefce552905518018ccbbf260238033082e
Parents: 7bf88eb
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Mon Oct 24 15:40:04 2016 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Mon Oct 24 15:40:04 2016 -0600
----------------------------------------------------------------------
.../traversal/strategy/decoration/VertexProgramStrategy.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3ed9aeef/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/traversal/strategy/decoration/VertexProgramStrategy.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/traversal/strategy/decoration/VertexProgramStrategy.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/traversal/strategy/decoration/VertexProgramStrategy.java
index 89e40cb..5faf6f1 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/traversal/strategy/decoration/VertexProgramStrategy.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/traversal/strategy/decoration/VertexProgramStrategy.java
@@ -171,6 +171,11 @@ public final class VertexProgramStrategy extends AbstractTraversalStrategy<Trave
}
} else
graphComputerClass = this.computer.getGraphComputerClass();
+ try {
+ Class.forName(graphComputerClass.getCanonicalName());
+ } catch (ClassNotFoundException e) {
+ throw new IllegalStateException(e.getMessage(), e);
+ }
final List<TraversalStrategy<?>> graphComputerStrategies = TraversalStrategies.GlobalCache.getStrategies(graphComputerClass).toList();
traversalSource.getStrategies().addStrategies(graphComputerStrategies.toArray(new TraversalStrategy[graphComputerStrategies.size()]));
}