Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-2, 1.8.6
-
Fix Version/s: 2.0-beta-3, 1.8.7
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The @ListenerList AST transformation changes the generic types associated to the cached ArrayList class node. This is wrong because it has side effects on the subsequent compîlations.
This
def listenerListType = ClassHelper.make(ArrayList) listenerListType.setGenericsTypes(types)
must be replaced with:
def listenerListType = ClassHelper.make(ArrayList).plainNodeReference listenerListType.setGenericsTypes(types)