test/tools/javac/depDocComment/DeprecatedDocComment.java

Wed, 14 Nov 2018 10:18:25 -0800

author
diazhou
date
Wed, 14 Nov 2018 10:18:25 -0800
changeset 3762
7909abb85562
parent 611
4172cfff05f0
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Added tag jdk8u201-b04 for changeset a7f48b9dfb82

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

mercurial