test/tools/doclint/ReferenceTest.java

changeset 1455
75ab654b5cd5
child 1465
a22f23fb7abf
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/doclint/ReferenceTest.java	Mon Dec 17 07:47:05 2012 -0800
     1.3 @@ -0,0 +1,50 @@
     1.4 +/*
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @build DocLintTester
     1.7 + * @run main DocLintTester -Xmsgs:-reference ReferenceTest.java
     1.8 + * @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java
     1.9 + */
    1.10 +
    1.11 +/** */
    1.12 +public class ReferenceTest {
    1.13 +    /**
    1.14 +     * @param x description
    1.15 +     */
    1.16 +    public int invalid_param;
    1.17 +
    1.18 +    /**
    1.19 +     * @param x description
    1.20 +     */
    1.21 +    public class InvalidParam { }
    1.22 +
    1.23 +    /**
    1.24 +     * @param x description
    1.25 +     */
    1.26 +    public void param_name_not_found(int a) { }
    1.27 +
    1.28 +    /**
    1.29 +     * @param <X> description
    1.30 +     */
    1.31 +    public class typaram_name_not_found { }
    1.32 +
    1.33 +    /**
    1.34 +     * @see Object#tooStrong()
    1.35 +     */
    1.36 +    public void ref_not_found() { }
    1.37 +
    1.38 +    /**
    1.39 +     * @return x description
    1.40 +     */
    1.41 +    public int invalid_return;
    1.42 +
    1.43 +    /**
    1.44 +     * @return x description
    1.45 +     */
    1.46 +    public void invalid_return();
    1.47 +
    1.48 +    /**
    1.49 +     * @throws Exception description
    1.50 +     */
    1.51 +    public void exception_not_thrown() { }
    1.52 +}
    1.53 +

mercurial