Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2303

GremlinDsl generate addV instead of addE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.3
    • 3.3.9, 3.4.4, 3.5.0
    • process
    • None

    Description

      in GremlinDslProcessor class , when generating traversalSource 

      at generateTraversalSource method addV should be replaced by addE 

       

      traversalSourceClass.addMethod(MethodSpec.methodBuilder("addE")
      .addModifiers(Modifier.PUBLIC)
      .addAnnotation(Override.class)
      .addParameter(String.class, "label")
      .addStatement("$N clone = this.clone()", ctx.traversalSourceClazz)
      .addStatement("clone.getBytecode().addStep($T.addV, 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());

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              ali_ammar ali ammar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: