[
https://issues.apache.org/jira/browse/TINKERPOP-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17163437#comment-17163437
]
ASF GitHub Bot commented on TINKERPOP-2394:
-------------------------------------------
spmallette commented on pull request #1305:
URL: https://github.com/apache/tinkerpop/pull/1305#issuecomment-662949084
I suppose that this change makes it the responsibility of the user to
validate that they don't override any of the Gremlin DSL with their imports. I
think that's ok, but this could represent a breaking change to those who might
rely on the ordering of the `Customizer` implementations as they are today. As
such I'm not sure if this should land in 3.4.x - perhaps it is best saved for
3.5.0 on master.
----------------------------------------------------------------
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]
> 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: Bug
> Components: groovy
> Affects Versions: 3.4.7
> Reporter: Nicolas Trangosi
> Priority: Minor
>
> 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)