Community
Participate
Working Groups
When using an annotation inside a NormalAnnotation, the value must be a constant expression. @interface I { boolean val() default true; } public class X { boolean bar() { return false; } @I(val = bar()) void foo() { } } bar() is not a constant expression.
Added check. Regression test: AnnotationTest#test046. Fixed
Verified in 200412140800