Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-beta-2, 1.8.6
-
Fix Version/s: None
-
Component/s: Compiler
-
Labels:None
-
Environment:JVM: 1.6.0_29 Vendor: Apple Inc. OS: Mac OS X
-
Number of attachments :
Description
we have some classes using @Delegate on generic classes:
@Commons
class FilterList
Sometime compilation fails with compiler errors like
BUG! exception in phase 'class generation' in source unit '/Users/andre/Development/Projects/Adternity/grf/grails-app/jobs/com/grf/reports/ScheduledReportExecutionJob.groovy' Type is null. Most probably you let a transform reuse existing ClassNodes with generics information, that is now used in a wrong context. (Use --stacktrace to see the full trace)
I assume this has to do with DelegateASTTransformation#nonGeneric handling of generic types, which is setting the generic type to null, but it's hard to reproduce the error in a determined way.
I've just seen that DelegateASTTransformation uses a new ClassNode instance, so the compiler error above shouldn't come from that place, am I right?