Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8270

Bug in @AutoImplement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0-beta-1
    • 2.5.14, 3.0.7, 4.0.0-alpha-2
    • None
    • None

    Description

      This works:

      @AutoImplement
      class MyClass implements Comparator {}
      

      but this doesn't:

      @AutoImplement
      class MyClass implements Comparator<String> {}
      

      The parameters aren't equal inside AutoImplementASTTransformation#getDeclaredMethodCorrected after correcting for generics (String vs Object).

      Attachments

        Activity

          People

            emilles Eric Milles
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m