-
Bug
-
Resolution: Not an Issue
-
P4
-
6.0, 7, 8, 9
The following should compie:
@interface Annot {
String str();
}
public class Test {
final String CONST_STR="something";
@Annot( str = CONST_STR )
static class Foo {}
@Annot( str = CONST_STR )
static void f(){}
}
@interface Annot {
String str();
}
public class Test {
final String CONST_STR="something";
@Annot( str = CONST_STR )
static class Foo {}
@Annot( str = CONST_STR )
static void f(){}
}
- relates to
-
JDK-8054448 (ann) Cannot reference field of inner class in an anonymous class
- Closed