-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
Affects Version/s: 6, 7, 8, 9
-
Component/s: tools
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
-