blob: 5d9e2f2d00c52d82cb5de5ad3e8b5cb2d6ed6ca6 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 8293519
* @summary deprecation warnings should be emitted for uses of annotation methods inside other annotations
* @compile/fail/ref=DeprecationWarningTest.out -deprecation -Werror -XDrawDiagnostics DeprecationWarningTest.java
*/
// both classes can't be inside the same outermost class or the compiler wont emit the warning as `9.6.4.6 @Deprecated` mandates
@interface Anno {
@Deprecated
boolean b() default false;
}
@Anno(b = true)
class Foo {}