8071453: Allow interface methods to be private
Reviewed-by: mcimadamore
Contributed-by: maurizio.cimadamore@oracle.com, srikanth.adayapalam@oracle.com
/* @test /nodynamiccopyright/
* @bug 8071453
* @author sadayapalam
* @summary Test that annotations types cannot declare private methods
* @compile/fail/ref=Private07.out -XDrawDiagnostics Private07.java
*/
@interface Private07 {
private String name();
}