mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
enum attribute values must be a constant (JLS 9.7.1 IDEA-132747)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class EnumExample {
|
||||
static @interface MyAnnotation {
|
||||
MyEnum enumValue();
|
||||
}
|
||||
|
||||
static enum MyEnum { E }
|
||||
|
||||
static final MyEnum E = MyEnum.E;
|
||||
|
||||
@MyAnnotation(enumValue = <error descr="Attribute value must be an enum constant">E</error>)
|
||||
void method() {}
|
||||
}
|
||||
Reference in New Issue
Block a user