author | sogoel |
Thu, 05 Jun 2014 10:57:10 -0700 | |
changeset 24797 | 850ebd4d80a7 |
parent 6150 | d055fa8ced62 |
permissions | -rw-r--r-- |
10 | 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 |
* |
|
863
3113c955a388
6724327: eliminate use of shell tests for simple golden file tests
jjg
parents:
10
diff
changeset
|
8 |
* @compile DeprecatedDocComment2.java |
6150 | 9 |
* @compile/fail/ref=DeprecatedDocComment.out -XDrawDiagnostics -Werror -deprecation DeprecatedDocComment.java |
10 | 10 |
*/ |
11 |
||
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. |
|
17 |
||
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. |
|
21 |
||
22 |
//import depDocComment.*; |
|
23 |
||
24 |
public class DeprecatedDocComment { |
|
25 |
||
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 |
} |
|
36 |
||
37 |
} |