mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-58158 (check when annotation parameter value must be .class)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
@interface Ann {
|
||||
Class type();
|
||||
}
|
||||
|
||||
class C {
|
||||
private static final Class<C> THIS_TYPE = C.class;
|
||||
|
||||
@Ann(type = <error descr="Attribute value must be a class literal">THIS_TYPE</error>)
|
||||
void bad() { }
|
||||
|
||||
@Ann(type = C.class)
|
||||
void good() { }
|
||||
}
|
||||
Reference in New Issue
Block a user