[ 
https://issues.apache.org/jira/browse/GROOVY-8326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-8326.
-----------------------------

> @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
>            Assignee: John Wagenleitner
>            Priority: Minor
>              Labels: ast
>             Fix For: 2.4.13
>
>
> 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
(v7.6.3#76005)

Reply via email to