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

Resolve naming collisions for static imports in the Gremlin language

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.2.3
    • None
    • process
    • None

    Description

      This may not be a breaking change - it can likely be done with deprecation along the 3.2.x line. The problem is that static imports collide in the GremlinScriptEngine and therefore there are not only situations where certain imports will be "hidden" but it can cause the system behave in non-deterministic fashion depending on the ScriptEngine. For example, groovy's compiler seems to only be able to detect the difference between Column.values and __.values() if wildcards are used. If they are imported directly then one of the other will fail.

      Here's a list of the troublemaker names that collide across different methods/enums: or,and,id,values,key,local,value,sum,min,max.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: