-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.5.7
-
Component/s: Static compilation, Static Type Checker
-
Labels:None
foo/bar/classes.java
package foo.bar; class F { void hi() {} } abstract class Base<T extends F> { protected T theField; } abstract class Middle<T extends F> extends Base<T> {} abstract class Concrete extends Middle<F> {}
foo/bar/GroovyUsage.groovy
package foo.bar @groovy.transform.CompileStatic class GroovyUsage extends Concrete { def usage() { theField.hi() // Error:(7, 9) Groovyc: [Static type checking] - Cannot find matching method java.lang.Object#hi(). Please check if the declared type is correct and if the method exists. } }
Note this was working with 2.4.17.