This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.transform.CompileStatic | |
@CompileStatic | |
public abstract class AbstractClass<A, B> { | |
private final Class<A> aClass | |
private final Class<B> bClass | |
AbstractClass(Class<A> aClass, Class<B> bClass) { | |
this.aClass = aClass | |
this.bClass = bClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result: STARTED | |
groovy.lang.MissingPropertyException: No such property: foo for class: Foo | |
at groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:1001) | |
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1856) | |
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1832) | |
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3734) | |
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:175) | |
at groovy.lang.Closure.getPropertyTryThese(Closure.java:324) | |
at groovy.lang.Closure.getPropertyOwnerFirst(Closure.java:318) | |
at groovy.lang.Closure.getProperty(Closure.java:307) |