Thu, 26 Jul 2018 15:47:44 +0800
Added tag mips64el-jdk8u172-b13 for changeset a5ddc08adcc0
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8004832
4 * @summary Add new doclint package
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 */
20 /** */
21 public class AccessTest {
22 /**
23 * public a < b
24 */
25 public void public_syntax_error() { }
27 /**
28 * protected a < b
29 */
30 protected void protected_syntax_error() { }
32 /**
33 * package-private a < b
34 */
35 void syntax_error() { }
37 /**
38 * private a < b
39 */
40 private void private_syntax_error() { }
41 }
43 /** */
44 class AccessTest2 {
45 /**
46 * public a < b
47 */
48 public void public_syntax_error() { }
50 /**
51 * protected a < b
52 */
53 protected void protected_syntax_error() { }
55 /**
56 * package-private a < b
57 */
58 void syntax_error() { }
60 /**
61 * private a < b
62 */
63 private void private_syntax_error() { }
64 }