JDK 9 RFR of JDK-6469561,javadoc for annotation types should not display "public abstract" modifiers on methods

joe darcy joe.darcy at oracle.com
Sun Feb 14 02:18:01 UTC 2016


Hello,

Please review the fix for

      JDK-6469561,javadoc for annotation types should not display 
"public abstract" modifiers on methods
     http://cr.openjdk.java.net/~darcy/6469561.0/

In brief, just as methods on interface types are implicitly public and 
abstract, so are methods on annotation types (technically annotation 
types are a special kind of interface type). While javadoc elides 
"public abstract" for methods on interfaces, it does not do so for 
methods on annotation type.

The patch makes the behavior of javadoc consistent in this case.

With the patch, all langtools regression tests pass and the modified 
test fails (as expected) if run against JDK 9 b104.

Thanks,

-Joe


More information about the compiler-dev mailing list