ReferenceTest.java revision 2053:3ae62331a56f
1/*
2 * @test /nodynamiccopyright/
3 * @bug 8004832 8020556 8002154
4 * @summary Add new doclint package
5 * @build DocLintTester
6 * @run main DocLintTester -Xmsgs:-reference ReferenceTest.java
7 * @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java
8 */
9
10/** */
11public class ReferenceTest {
12    /**
13     * @param x description
14     */
15    public int invalid_param;
16
17    /**
18     * @param x description
19     */
20    public class InvalidParam { }
21
22    /**
23     * @param x description
24     */
25    public void param_name_not_found(int a) { }
26
27    /**
28     * @param <X> description
29     */
30    public class typaram_name_not_found { }
31
32    /**
33     * @see Object#tooStrong()
34     */
35    public void ref_not_found() { }
36
37    /**
38     * @return x description
39     */
40    public int invalid_return;
41
42    /**
43     * @return x description
44     */
45    public void invalid_return();
46
47    /**
48     * @throws Exception description
49     */
50    public void exception_not_thrown() { }
51
52    /**
53     * @param <T> throwable
54     * @throws T description
55     */
56    public <T extends Throwable> void valid_throws_generic() throws T { }
57
58    /**
59     * {@link java.util.List<String>}
60     * {@link java.util.List<String>#equals}
61     * @see java.util.List<String>
62     * @see java.util.List<String>#equals
63     */
64    public void invalid_type_args() { }
65}
66
67