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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.12
    • 2.4.13
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: