Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0-beta-2, 1.8.6
-
None
-
None
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)