duke@1: /** duke@1: * @test /nodynamiccopyright/ duke@1: * @bug 4241231 4785453 duke@1: * @summary Make sure the compiler scans for deprecated tag in legal duke@1: * docComment only duke@1: * @author Jing Qian duke@1: * jjg@69: * @compile DeprecatedDocComment2.java jjg@611: * @compile/fail/ref=DeprecatedDocComment.out -XDrawDiagnostics -Werror -deprecation DeprecatedDocComment.java duke@1: */ duke@1: duke@1: // WARNING: This file needs to be compiled with the -deprecation flag on. duke@1: // DeprecatedDocCommentTest2.java in test/tools/javac/depDocComment/ duke@1: // should be compiled first before this file can be compiled. This is because duke@1: // the compiler *does not* issue deprecation warnings for a file currently duke@1: // being compiled. duke@1: duke@1: // The test passes iff the compile issues deprecation warnings for duke@1: // deprecatedTest 1, 5, and 6; and fails with an unclosed comment error duke@1: // The test does not need to be run. duke@1: duke@1: //import depDocComment.*; duke@1: duke@1: public class DeprecatedDocComment { duke@1: duke@1: public static void main(String argv[]) { duke@1: DeprecatedDocComment2.deprecatedTest1(); duke@1: DeprecatedDocComment2.deprecatedTest2(); duke@1: DeprecatedDocComment2.deprecatedTest3(); duke@1: DeprecatedDocComment2.deprecatedTest4(); duke@1: DeprecatedDocComment2.deprecatedTest5(); duke@1: DeprecatedDocComment2.deprecatedTest6(); duke@1: DeprecatedDocComment2.deprecatedTest7(); duke@1: DeprecatedDocComment2.deprecatedTest8(); duke@1: } duke@1: duke@1: }