[
https://issues.apache.org/jira/browse/TINKERPOP-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16943988#comment-16943988
]
ASF GitHub Bot commented on TINKERPOP-2303:
-------------------------------------------
ammarove commented on pull request #1207: TINKERPOP-2303 fix GremlinDsl
generate addV instead of addE
URL: https://github.com/apache/tinkerpop/pull/1207
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> GremlinDsl generate addV instead of addE
> ----------------------------------------
>
> Key: TINKERPOP-2303
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2303
> Project: TinkerPop
> Issue Type: Bug
> Components: process
> Affects Versions: 3.4.3
> Reporter: ali ammar
> Priority: Minor
>
> in GremlinDslProcessor class , when generating traversalSource
> at generateTraversalSource method addV should be replaced by addE
> {quote}
> traversalSourceClass.addMethod(MethodSpec.methodBuilder("{color:#00875a}addE{color}")
> .addModifiers(Modifier.PUBLIC)
> .addAnnotation(Override.class)
> .addParameter(String.class, "label")
> .addStatement("$N clone = this.clone()", ctx.traversalSourceClazz)
> .addStatement("clone.getBytecode().addStep($T.{color:#FF0000}*addV*{color},
> label)", GraphTraversal.Symbols.class)
> .addStatement("$N traversal = new $N(clone)", ctx.defaultTraversalClazz,
> ctx.defaultTraversalClazz)
> .addStatement("return ($T) traversal.asAdmin().addStep(new $T(traversal,
> label))", ctx.traversalClassName, AddEdgeStartStep.class)
> .returns(ParameterizedTypeName.get(ctx.traversalClassName,
> ClassName.get(Edge.class), ClassName.get(Edge.class)))
> .build());
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)