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