langtools/test/tools/doclint/AccessTest.java
author naoto
Tue, 29 Mar 2016 17:06:33 -0700
changeset 36739 145210aba850
parent 30730 d3ce7619db2c
permissions -rw-r--r--
8152704: jlink command line output/help message improvement Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     1
/*
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
14962
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     3
 * @bug 8004832
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     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
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     6
 * @build DocLintTester
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -ref AccessTest.protected.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     8
 * @run main DocLintTester -Xmsgs -ref AccessTest.private.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     9
 * @run main DocLintTester -Xmsgs:syntax -ref AccessTest.private.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    10
 * @run main DocLintTester -Xmsgs:syntax/public -ref AccessTest.public.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    11
 * @run main DocLintTester -Xmsgs:syntax/protected -ref AccessTest.protected.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    12
 * @run main DocLintTester -Xmsgs:syntax/package -ref AccessTest.package.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    13
 * @run main DocLintTester -Xmsgs:syntax/private -ref AccessTest.private.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    14
 * @run main DocLintTester -Xmsgs:all,-syntax AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    15
 * @run main DocLintTester -Xmsgs:all,-syntax/public AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    16
 * @run main DocLintTester -Xmsgs:all,-syntax/protected -ref AccessTest.public.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    17
 * @run main DocLintTester -Xmsgs:all,-syntax/package -ref AccessTest.protected.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    18
 * @run main DocLintTester -Xmsgs:all,-syntax/private -ref AccessTest.package.out AccessTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    19
 */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    20
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    21
/** */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    22
public class AccessTest {
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    23
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    24
     * public a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    25
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    26
    public void public_syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    27
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    28
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    29
     * protected a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    30
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    31
    protected void protected_syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    32
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    33
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    34
     * package-private a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    35
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    36
    void syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    37
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    38
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    39
     * private a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    40
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    41
    private void private_syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    42
}
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    43
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    44
/** */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    45
class AccessTest2 {
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    46
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    47
     * public a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    48
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    49
    public void public_syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    50
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    51
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    52
     * protected a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    53
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    54
    protected void protected_syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    55
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    56
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    57
     * package-private a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    58
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    59
    void syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    60
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    61
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    62
     * private a < b
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    63
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    64
    private void private_syntax_error() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    65
}
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    66