test/tools/javac/depDocComment/DeprecatedDocComment.java

Thu, 05 Mar 2009 17:25:37 +0000

author
mcimadamore
date
Thu, 05 Mar 2009 17:25:37 +0000
changeset 238
86b60aa941c6
parent 69
82c7aa6fe50a
child 611
4172cfff05f0
permissions
-rw-r--r--

6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
Summary: create new combo type/symbol visitor printer used by all diagnostic formatters
Reviewed-by: jjg

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@69 9 * @compile/fail/ref=DeprecatedDocComment.out -XDrawDiagnostics -XDstdout -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