14952
|
1 |
/*
|
|
2 |
* @test /nodynamiccopyright/
|
14962
|
3 |
* @bug 8004832
|
|
4 |
* @summary Add new doclint package
|
14952
|
5 |
* @build DocLintTester
|
|
6 |
* @run main DocLintTester -ref AccessTest.protected.out AccessTest.java
|
|
7 |
* @run main DocLintTester -Xmsgs -ref AccessTest.private.out AccessTest.java
|
|
8 |
* @run main DocLintTester -Xmsgs:syntax -ref AccessTest.private.out AccessTest.java
|
|
9 |
* @run main DocLintTester -Xmsgs:syntax/public -ref AccessTest.public.out AccessTest.java
|
|
10 |
* @run main DocLintTester -Xmsgs:syntax/protected -ref AccessTest.protected.out AccessTest.java
|
|
11 |
* @run main DocLintTester -Xmsgs:syntax/package -ref AccessTest.package.out AccessTest.java
|
|
12 |
* @run main DocLintTester -Xmsgs:syntax/private -ref AccessTest.private.out AccessTest.java
|
|
13 |
* @run main DocLintTester -Xmsgs:all,-syntax AccessTest.java
|
|
14 |
* @run main DocLintTester -Xmsgs:all,-syntax/public AccessTest.java
|
|
15 |
* @run main DocLintTester -Xmsgs:all,-syntax/protected -ref AccessTest.public.out AccessTest.java
|
|
16 |
* @run main DocLintTester -Xmsgs:all,-syntax/package -ref AccessTest.protected.out AccessTest.java
|
|
17 |
* @run main DocLintTester -Xmsgs:all,-syntax/private -ref AccessTest.package.out AccessTest.java
|
|
18 |
*/
|
|
19 |
|
|
20 |
/** */
|
|
21 |
public class AccessTest {
|
|
22 |
/**
|
|
23 |
* public a < b
|
|
24 |
*/
|
|
25 |
public void public_syntax_error() { }
|
|
26 |
|
|
27 |
/**
|
|
28 |
* protected a < b
|
|
29 |
*/
|
|
30 |
protected void protected_syntax_error() { }
|
|
31 |
|
|
32 |
/**
|
|
33 |
* package-private a < b
|
|
34 |
*/
|
|
35 |
void syntax_error() { }
|
|
36 |
|
|
37 |
/**
|
|
38 |
* private a < b
|
|
39 |
*/
|
|
40 |
private void private_syntax_error() { }
|
|
41 |
}
|
|
42 |
|
|
43 |
/** */
|
|
44 |
class AccessTest2 {
|
|
45 |
/**
|
|
46 |
* public a < b
|
|
47 |
*/
|
|
48 |
public void public_syntax_error() { }
|
|
49 |
|
|
50 |
/**
|
|
51 |
* protected a < b
|
|
52 |
*/
|
|
53 |
protected void protected_syntax_error() { }
|
|
54 |
|
|
55 |
/**
|
|
56 |
* package-private a < b
|
|
57 |
*/
|
|
58 |
void syntax_error() { }
|
|
59 |
|
|
60 |
/**
|
|
61 |
* private a < b
|
|
62 |
*/
|
|
63 |
private void private_syntax_error() { }
|
|
64 |
}
|
|
65 |
|