jdk-24/test/langtools/tools/javac/lint/Deprecation.java

16 lines
257 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4821359
* @summary Add -Xlint flag
* @author gafter
*
* @compile/fail/ref=Deprecation.out -XDrawDiagnostics -Xlint:deprecation -Werror Deprecation.java
2007-12-01 00:00:00 +00:00
*/
/** @deprecated */
class A {
}
class B extends A {
}