[
https://issues.apache.org/jira/browse/TINKERPOP-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17171011#comment-17171011
]
Stephen Mallette commented on TINKERPOP-2394:
---------------------------------------------
Added the breaking label as import order for the {{ScriptEngine}} has shifted a
bit and could therefore load classes a bit differently when using custom
imports.
> Unable to use __ class of a custom DSL when passing a script even if this
> class is imported
> -------------------------------------------------------------------------------------------
>
> Key: TINKERPOP-2394
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2394
> Project: TinkerPop
> Issue Type: Improvement
> Components: groovy
> Affects Versions: 3.4.7
> Reporter: Nicolas Trangosi
> Assignee: Stephen Mallette
> Priority: Minor
> Labels: breaking
> Fix For: 3.5.0
>
>
> 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.__}}
> {code:java}
> var manager = SingleGremlinScriptEngineManager.instance();
> manager.addPlugin(ImportGremlinPlugin.build()
> .classImports( __.class,)
> .create());
> GremlinScriptEngine engine = manager.getEngineByName("gremlin-groovy");
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)