test/tools/javac/depDocComment/DeprecatedDocComment.java

Wed, 09 Apr 2008 11:19:15 -0700

author
xdono
date
Wed, 09 Apr 2008 11:19:15 -0700
changeset 15
18f0b1b5ffd6
parent 1
9a66ca7c79fa
child 69
82c7aa6fe50a
permissions
-rw-r--r--

Added tag jdk7-b25 for changeset 58039502942e

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

mercurial