You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/05/02 17:49:14 UTC
[tinkerpop] branch master updated: changed the typing of from() and
to() to accept wildcard instead of Vertex prevent query like ```
g.addV().as("first").repeat(__.addE("next").to(__.addV()).inV()).times(5).addE("next").to(__.select("first"))
``` from failing static type checking when gremlin server use security
sandbox
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new a71fb05 changed the typing of from() and to() to accept wildcard instead of Vertex prevent query like ``` g.addV().as("first").repeat(__.addE("next").to(__.addV()).inV()).times(5).addE("next").to(__.select("first")) ``` from failing static type checking when gremlin server use security sandbox
new 7708aa6 Merge pull request #1100 from sel-fish/TINKERPOP-2201
a71fb05 is described below
commit a71fb05cab426566d9920fbf91fd66e5fb2b1d01
Author: sel-fish <fq...@hotmail.com>
AuthorDate: Thu Apr 25 14:12:43 2019 +0800
changed the typing of from() and to() to accept wildcard instead of Vertex
prevent query like
```
g.addV().as("first").repeat(__.addE("next").to(__.addV()).inV()).times(5).addE("next").to(__.select("first"))
```
from failing static type checking when gremlin server use security sandbox
---
.../tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
index 204cc37..db5cd35 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
@@ -1103,7 +1103,7 @@ public interface GraphTraversal<S, E> extends Traversal<S, E> {
* @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#addedge-step" target="_blank">Reference Documentation - From Step</a>
* @since 3.1.0-incubating
*/
- public default GraphTraversal<S, E> to(final Traversal<?, Vertex> toVertex) {
+ public default GraphTraversal<S, E> to(final Traversal<?, ?> toVertex) {
this.asAdmin().getBytecode().addStep(Symbols.to, toVertex);
((FromToModulating) this.asAdmin().getEndStep()).addTo(toVertex.asAdmin());
return this;
@@ -1118,7 +1118,7 @@ public interface GraphTraversal<S, E> extends Traversal<S, E> {
* @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#addedge-step" target="_blank">Reference Documentation - From Step</a>
* @since 3.1.0-incubating
*/
- public default GraphTraversal<S, E> from(final Traversal<?, Vertex> fromVertex) {
+ public default GraphTraversal<S, E> from(final Traversal<?, ?> fromVertex) {
this.asAdmin().getBytecode().addStep(Symbols.from, fromVertex);
((FromToModulating) this.asAdmin().getEndStep()).addFrom(fromVertex.asAdmin());
return this;