-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.9
-
Fix Version/s: 2.2.1
-
Component/s: None
-
Labels:None
The ASTTransformationCustomizer only supports basic types for annotation values. It would be good if it could support any Expression too. This would solve this, which is not working:
new ASTTransformationCustomizer(value:500, unit: TimeUnit.MILLISECONDS, TimedInterrupt)
which could be written this way:
new ASTTransformationCustomizer(value:500, unit: new PropertyExpression(new ClassExpression(ClassHelper.make(TimeUnit)),'MILLISECONDS'), TimedInterrupt)