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

@Override should not copied onto methods generated by applying @Memoize

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.12
    • Fix Version/s: 2.4.13
    • Component/s: None
    • Labels:

      Description

      Applying @Memoized onto a method already annotated with @Override will result in a compilation error along the lines of:

      Method 'memoizedMethodPriv$...' from class '...' does not override method from its superclass or interfaces but is annotated with @Override.

      This is because all annotations of the method annotated with @Memoized are copied onto the method generated by the AST here. In my opinion java.lang.Override should be filtered out.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jwagenleitner John Wagenleitner
                Reporter:
                erdi Marcin Erdmann
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: