JDK-8033132 : Javac should recognize a constant string in annotations on a nested static class
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6.0,7,8,9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-01-29
  • Updated: 2016-07-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_majorUnresolved
Related Reports
Relates :  
Description
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(){}
}

Comments
I *think* this is easy ... feel free to grab anyone
29-01-2014