Tue, 02 Feb 2010 10:56:10 -0800
6918625: handle annotations on array class literals
Reviewed-by: jjg, darcy
Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
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 -XDstdout -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 }