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

Static import for __.values() overriden by Column.values()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.6.4
    • 3.7.0, 3.5.7, 3.6.5
    • groovy
    • None

    Description

      this has always been a problem:

      gremlin> :> values()
      ==>keys
      ==>values
      

      but now after latest groovy upgrade in 3.6.3 we also get:

      gremlin> :> values("a")
      No signature of method: org.apache.tinkerpop.gremlin.structure.Column$2.call() is applicable for argument types: (String) values: [a]
      Possible solutions: wait(), name(), any(), wait(long), tap(groovy.lang.Closure), each(groovy.lang.Closure)
      Type ':help' or ':h' for help.
      Display stack trace? [yN]
      

      Recommended workaround would be to prefer use of the explicit __ or Column when there is potential for naming conflicts when using Groovy.

      Attachments

        Activity

          People

            kenhuuu Ken Hu
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: