test/tools/doclint/ReferenceTest.java

Fri, 08 Feb 2013 09:15:27 +0000

author
vromero
date
Fri, 08 Feb 2013 09:15:27 +0000
changeset 1556
b1deb90d2e37
parent 1465
a22f23fb7abf
child 1917
2fbe77c38802
permissions
-rw-r--r--

8005931: javac doesn't set ACC_STRICT for classes with package access
Reviewed-by: mcimadamore

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8004832
     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  */
    10 /** */
    11 public class ReferenceTest {
    12     /**
    13      * @param x description
    14      */
    15     public int invalid_param;
    17     /**
    18      * @param x description
    19      */
    20     public class InvalidParam { }
    22     /**
    23      * @param x description
    24      */
    25     public void param_name_not_found(int a) { }
    27     /**
    28      * @param <X> description
    29      */
    30     public class typaram_name_not_found { }
    32     /**
    33      * @see Object#tooStrong()
    34      */
    35     public void ref_not_found() { }
    37     /**
    38      * @return x description
    39      */
    40     public int invalid_return;
    42     /**
    43      * @return x description
    44      */
    45     public void invalid_return();
    47     /**
    48      * @throws Exception description
    49      */
    50     public void exception_not_thrown() { }
    51 }

mercurial