Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.9
-
None
-
None
Description
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)