Could the Groovy compiler be updated to the latest stable release level? I am experiencing issue GROOVY-6899 within Eclipse. But a command-line compilation using Ant and Groovy 2.4.6 succeeds.
What I have is a simple POGO that implements an interface with type arguments. When running unit tests in Eclipse, I get this exception for every use of the MiData constructor.
java.lang.NullPointerException
at com.sun.beans.TypeResolver.resolve(TypeResolver.java:203)
at com.sun.beans.TypeResolver.resolve(TypeResolver.java:162)
at com.sun.beans.TypeResolver.resolveInClass(TypeResolver.java:81)
at java.beans.FeatureDescriptor.getReturnType(FeatureDescriptor.java:370)
at java.beans.Introspector.getTargetEventInfo(Introspector.java:1052)
at java.beans.Introspector.getBeanInfo(Introspector.java:427)
at java.beans.Introspector.getBeanInfo(Introspector.java:173)
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3289)
at java.security.AccessController.doPrivileged(Native Method)
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3287)
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:254)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285)
at MiData.$getStaticMetaClass(MiData.groovy)
at MiData.<init>(MiData.groovy)
@EqualsAndHashCode(includes='value') @ToString(includes='value')
class MiData implements MultiIndexed<Integer, String> {
final String value
final Integer primaryKey
final String[] secondaryKeys
MiData(String val, Integer pk, String... sk) {
value = val
primaryKey = pk
secondaryKeys = sk
}
}
// and the Java interface for reference:
public interface MultiIndexed<PK, SK> {
PK getPrimaryKey();
SK[] getSecondaryKeys();
}
Could the Groovy compiler be updated to the latest stable release level? I am experiencing issue GROOVY-6899 within Eclipse. But a command-line compilation using Ant and Groovy 2.4.6 succeeds.
What I have is a simple POGO that implements an interface with type arguments. When running unit tests in Eclipse, I get this exception for every use of the MiData constructor.