You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Marcin Erdmann (JIRA)" <ji...@apache.org> on 2017/09/20 16:30:02 UTC

[jira] [Created] (GROOVY-8326) @Override should not copied onto methods generated by applying @Memoize

Marcin Erdmann created GROOVY-8326:
--------------------------------------

             Summary: @Override should not copied onto methods generated by applying @Memoize
                 Key: GROOVY-8326
                 URL: https://issues.apache.org/jira/browse/GROOVY-8326
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.4.12
            Reporter: Marcin Erdmann
            Priority: Minor


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

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

This is because all annotations of the method annotated with {{@Memoized}} are copied onto the method generated by the AST [here|https://github.com/apache/groovy/blob/731d4daa78b9cd32bea724d2d651aa1164eef6cc/src/main/org/codehaus/groovy/transform/MemoizedASTTransformation.java#L131]. In my opinion {{java.lang.Override}} should be filtered out.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)