Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.3.9, 2.4.0
-
None
Description
If a bridge method is generated for a method that uses generic types defined in a super class or interface, then the compilation will succeed, but trying to use the generated class will fail with a NPE in TypeResover.
For example:
public class BaseGeneric<T> { protected boolean foo(T t) { true } } // ... @groovy.transform.CompileStatic class Ext extends BaseGeneric<Integer> { int doSomething() { def c = { foo(123) // a bridge method is generated (access$...) } c.call()?1:0 } }