diff -r 000000000000 -r 959103a6100f test/tools/doclint/ReferenceTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/doclint/ReferenceTest.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,66 @@ +/* + * @test /nodynamiccopyright/ + * @bug 8004832 8020556 8002154 + * @summary Add new doclint package + * @build DocLintTester + * @run main DocLintTester -Xmsgs:-reference ReferenceTest.java + * @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java + */ + +/** */ +public class ReferenceTest { + /** + * @param x description + */ + public int invalid_param; + + /** + * @param x description + */ + public class InvalidParam { } + + /** + * @param x description + */ + public void param_name_not_found(int a) { } + + /** + * @param description + */ + public class typaram_name_not_found { } + + /** + * @see Object#tooStrong() + */ + public void ref_not_found() { } + + /** + * @return x description + */ + public int invalid_return; + + /** + * @return x description + */ + public void invalid_return(); + + /** + * @throws Exception description + */ + public void exception_not_thrown() { } + + /** + * @param throwable + * @throws T description + */ + public void valid_throws_generic() throws T { } + + /** + * {@link java.util.List} + * {@link java.util.List#equals} + * @see java.util.List + * @see java.util.List#equals + */ + public void invalid_type_args() { } +} +