RFR: JDK-8250741: an annotation interface may not be declared as a local interface

Vicente Romero vicente.romero at oracle.com
Wed Jul 29 19:08:19 UTC 2020


Please review at [1] the fix for [2] with corresponding CSR at [3]. The 
spec for Local Static Interfaces and Enum Classes [4] states that:

|An annotation interface (9.6) may not be declared as a local interface|

javac is accepting local annotations though. This fix is closing that 
gap between the compiler and the spec,

Thanks,
Vicente

[1] http://cr.openjdk.java.net/~vromero/8250741/webrev.00
[2] Bug: https://bugs.openjdk.java.net/browse/JDK-8250741
[3] CSR: https://bugs.openjdk.java.net/browse/JDK-8250790
[4] 
https://cr.openjdk.java.net/~gbierman/jep384/jep384-20200506/specs/local-statics-jls.html#jls-14.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20200729/ab6a84f4/attachment.htm>


More information about the compiler-dev mailing list