Assert that reference annotation argument is always an enum value

Rename JavaReferenceAnnotationArgument on that occasion to
JavaEnumValueAnnotationArgument. Also add a test on a nested enum annotation
argument
This commit is contained in:
Alexander Udalov
2014-08-27 12:36:11 +04:00
parent 13eeb18219
commit ec02382976
7 changed files with 70 additions and 20 deletions
@@ -0,0 +1,14 @@
package test;
public class NestedEnumArgument {
public enum E {
FIRST
}
@interface Anno {
E value();
}
@Anno(E.FIRST)
void foo() {}
}