Support any constant expressions as annotation arguments

This commit is contained in:
Alexander Udalov
2013-09-02 23:03:08 +04:00
parent a17328f9d3
commit e62a2bbf2f
11 changed files with 135 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
package test;
public class AnnotationWithArithmeticExpressionInParam {
public @interface Anno {
int value();
}
@Anno(2 * 8 + 13 * (239 - 237))
public static class Class {}
}