test/tools/javac/depDocComment/DeprecatedDocComment.java

Mon, 26 Jul 2010 14:18:45 -0700

author
jjg
date
Mon, 26 Jul 2010 14:18:45 -0700
changeset 611
4172cfff05f0
parent 69
82c7aa6fe50a
child 2525
2eb010b6cb22
permissions
-rw-r--r--

6971882: Remove -XDstdout from javac test
Reviewed-by: darcy

     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  * @compile DeprecatedDocComment2.java
     9  * @compile/fail/ref=DeprecatedDocComment.out -XDrawDiagnostics -Werror -deprecation DeprecatedDocComment.java
    10  */
    12 // WARNING: This file needs to be compiled with the -deprecation flag on.
    13 // DeprecatedDocCommentTest2.java in test/tools/javac/depDocComment/
    14 // should be compiled first before this file can be compiled. This is because
    15 // the compiler *does not* issue deprecation warnings for a file currently
    16 // being compiled.
    18 // The test passes iff the compile issues deprecation warnings for
    19 // deprecatedTest 1, 5, and 6; and fails with an unclosed comment error
    20 // The test does not need to be run.
    22 //import depDocComment.*;
    24 public class DeprecatedDocComment {
    26     public static void main(String argv[]) {
    27       DeprecatedDocComment2.deprecatedTest1();
    28       DeprecatedDocComment2.deprecatedTest2();
    29       DeprecatedDocComment2.deprecatedTest3();
    30       DeprecatedDocComment2.deprecatedTest4();
    31       DeprecatedDocComment2.deprecatedTest5();
    32       DeprecatedDocComment2.deprecatedTest6();
    33       DeprecatedDocComment2.deprecatedTest7();
    34       DeprecatedDocComment2.deprecatedTest8();
    35     }
    37 }

mercurial