Grails 2.3.8 uses Groovy 2.1.9. In this version of Groovy, the @Override annotation fails (at least) in the situation in which I used it (the most basic case):
class A {
def foo() {}
}
class B extends A {
@Override
def foo(String s) {}
}
Groovy (2.1.9) .
Groovy ( , 2.4.1) . , :
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
foo.groovy: 7: Method 'foo' from class 'B' does not override method from its superclass or interfaces but is annotated with @Override.
@ line 7, column 2.
@Override
^
1 error
: , Groovy 2.1.9 @Override: