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

Unable to use __ class of a custom DSL when passing a script even if this class is imported

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.4.7
    • Fix Version/s: 3.5.0
    • Component/s: groovy
    • Labels:

      Description

      Even if I import the a custom DSL __ class, I cannot use in script as the CoreGremlinPlugin override it with the class org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__

      var manager = SingleGremlinScriptEngineManager.instance();
      manager.addPlugin(ImportGremlinPlugin.build()
      				.classImports( __.class,)
      				.create());
      GremlinScriptEngine engine = manager.getEngineByName("gremlin-groovy");
      

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              trangosi Nicolas Trangosi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: