jdk-24/langtools/test/tools/javac/defaultMethods/private/Private07.java
Srikanth Adayapalam 105275fb87 8071453: Allow interface methods to be private
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore
2015-03-02 10:41:08 +05:30

11 lines
270 B
Java

/* @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();
}