author | iris |
Thu, 23 Jul 2015 13:19:54 -0700 | |
changeset 33994 | bf31c6908a70 |
parent 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
14952 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
14962 | 3 |
* @bug 8004832 |
4 |
* @summary Add new doclint package |
|
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
14962
diff
changeset
|
5 |
* @modules jdk.compiler/com.sun.tools.doclint |
14952 | 6 |
* @build DocLintTester |
7 |
* @run main DocLintTester -ref AccessTest.protected.out AccessTest.java |
|
8 |
* @run main DocLintTester -Xmsgs -ref AccessTest.private.out AccessTest.java |
|
9 |
* @run main DocLintTester -Xmsgs:syntax -ref AccessTest.private.out AccessTest.java |
|
10 |
* @run main DocLintTester -Xmsgs:syntax/public -ref AccessTest.public.out AccessTest.java |
|
11 |
* @run main DocLintTester -Xmsgs:syntax/protected -ref AccessTest.protected.out AccessTest.java |
|
12 |
* @run main DocLintTester -Xmsgs:syntax/package -ref AccessTest.package.out AccessTest.java |
|
13 |
* @run main DocLintTester -Xmsgs:syntax/private -ref AccessTest.private.out AccessTest.java |
|
14 |
* @run main DocLintTester -Xmsgs:all,-syntax AccessTest.java |
|
15 |
* @run main DocLintTester -Xmsgs:all,-syntax/public AccessTest.java |
|
16 |
* @run main DocLintTester -Xmsgs:all,-syntax/protected -ref AccessTest.public.out AccessTest.java |
|
17 |
* @run main DocLintTester -Xmsgs:all,-syntax/package -ref AccessTest.protected.out AccessTest.java |
|
18 |
* @run main DocLintTester -Xmsgs:all,-syntax/private -ref AccessTest.package.out AccessTest.java |
|
19 |
*/ |
|
20 |
||
21 |
/** */ |
|
22 |
public class AccessTest { |
|
23 |
/** |
|
24 |
* public a < b |
|
25 |
*/ |
|
26 |
public void public_syntax_error() { } |
|
27 |
||
28 |
/** |
|
29 |
* protected a < b |
|
30 |
*/ |
|
31 |
protected void protected_syntax_error() { } |
|
32 |
||
33 |
/** |
|
34 |
* package-private a < b |
|
35 |
*/ |
|
36 |
void syntax_error() { } |
|
37 |
||
38 |
/** |
|
39 |
* private a < b |
|
40 |
*/ |
|
41 |
private void private_syntax_error() { } |
|
42 |
} |
|
43 |
||
44 |
/** */ |
|
45 |
class AccessTest2 { |
|
46 |
/** |
|
47 |
* public a < b |
|
48 |
*/ |
|
49 |
public void public_syntax_error() { } |
|
50 |
||
51 |
/** |
|
52 |
* protected a < b |
|
53 |
*/ |
|
54 |
protected void protected_syntax_error() { } |
|
55 |
||
56 |
/** |
|
57 |
* package-private a < b |
|
58 |
*/ |
|
59 |
void syntax_error() { } |
|
60 |
||
61 |
/** |
|
62 |
* private a < b |
|
63 |
*/ |
|
64 |
private void private_syntax_error() { } |
|
65 |
} |
|
66 |