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