NoDefaultAbstract.java 253 字节
Newer Older
1 2 3 4 5 6 7 8 9
/*
 * @test /nodynamiccopyright/
 * @bug 8022322
 * @summary Default methods are not allowed in an annotation.
 * @compile/fail/ref=NoDefaultAbstract.out -XDrawDiagnostics NoDefaultAbstract.java
 */
@interface NoDefaultAbstract {
    default int m();
}