test/tools/javac/depDocComment/DeprecatedDocComment.java

Sat, 01 Dec 2007 00:00:00 +0000

author
duke
date
Sat, 01 Dec 2007 00:00:00 +0000
changeset 1
9a66ca7c79fa
child 69
82c7aa6fe50a
permissions
-rw-r--r--

Initial load

duke@1 1 /**
duke@1 2 * @test /nodynamiccopyright/
duke@1 3 * @bug 4241231 4785453
duke@1 4 * @summary Make sure the compiler scans for deprecated tag in legal
duke@1 5 * docComment only
duke@1 6 * @author Jing Qian
duke@1 7 *
duke@1 8 * @run shell DeprecatedDocComment.sh
duke@1 9 */
duke@1 10
duke@1 11 // WARNING: This file needs to be compiled with the -deprecation flag on.
duke@1 12 // DeprecatedDocCommentTest2.java in test/tools/javac/depDocComment/
duke@1 13 // should be compiled first before this file can be compiled. This is because
duke@1 14 // the compiler *does not* issue deprecation warnings for a file currently
duke@1 15 // being compiled.
duke@1 16
duke@1 17 // The test passes iff the compile issues deprecation warnings for
duke@1 18 // deprecatedTest 1, 5, and 6; and fails with an unclosed comment error
duke@1 19 // The test does not need to be run.
duke@1 20
duke@1 21 //import depDocComment.*;
duke@1 22
duke@1 23 public class DeprecatedDocComment {
duke@1 24
duke@1 25 public static void main(String argv[]) {
duke@1 26 DeprecatedDocComment2.deprecatedTest1();
duke@1 27 DeprecatedDocComment2.deprecatedTest2();
duke@1 28 DeprecatedDocComment2.deprecatedTest3();
duke@1 29 DeprecatedDocComment2.deprecatedTest4();
duke@1 30 DeprecatedDocComment2.deprecatedTest5();
duke@1 31 DeprecatedDocComment2.deprecatedTest6();
duke@1 32 DeprecatedDocComment2.deprecatedTest7();
duke@1 33 DeprecatedDocComment2.deprecatedTest8();
duke@1 34 }
duke@1 35
duke@1 36 }

mercurial