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

Error when overriding DSL methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.6.2
    • None
    • process
    • None

    Description

      I'm implementing a custom gremlin DSL in java, and due to some interesting requirements, I'm trying to override the `properties` method from the GraphTraversal class.

       

      Doing so results in a compilation error (see below) due to the method already being defined. It looks like the DSL code generation is loading in the custom methods, and then loading in the built in methods and the `@Override` annotation is ignored.

       

       

      Error:

      [ERROR] /Users/drewnuttall-smith/Documents/work/projects/compliance/dm-mettle-nextgen-compliance/target/generated-sources/annotations/com/datamigrators/mettle/compliance/gremlin/dsl/DatastageTraversal.java:[223,62] method <E2>properties(java.lang.String...) is already defined in interface com.datamigrators.mettle.compliance.gremlin.dsl.DatastageTraversal

      [ERROR] /Users/drewnuttall-smith/Documents/work/projects/compliance/dm-mettle-nextgen-compliance/target/generated-sources/annotations/com/datamigrators/mettle/compliance/gremlin/dsl/__.java:[192,85] name clash: <A,B>properties(java.lang.String...) and <E2,S>properties(java.lang.String...) have the same erasure

      Attachments

        1. dsl.patch
          7 kB
          Stephen Mallette

        Activity

          People

            Unassigned Unassigned
            drew.nuttall-smith Drew Nuttall-Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: