author | naoto |
Tue, 29 Mar 2016 17:06:33 -0700 | |
changeset 36739 | 145210aba850 |
parent 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
14952 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
20256
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
3 |
* @bug 8004832 8020556 8002154 |
14962 | 4 |
* @summary Add new doclint package |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
20256
diff
changeset
|
5 |
* @modules jdk.compiler/com.sun.tools.doclint |
14952 | 6 |
* @build DocLintTester |
7 |
* @run main DocLintTester -Xmsgs:-reference ReferenceTest.java |
|
8 |
* @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java |
|
9 |
*/ |
|
10 |
||
11 |
/** */ |
|
12 |
public class ReferenceTest { |
|
13 |
/** |
|
14 |
* @param x description |
|
15 |
*/ |
|
16 |
public int invalid_param; |
|
17 |
||
18 |
/** |
|
19 |
* @param x description |
|
20 |
*/ |
|
21 |
public class InvalidParam { } |
|
22 |
||
23 |
/** |
|
24 |
* @param x description |
|
25 |
*/ |
|
26 |
public void param_name_not_found(int a) { } |
|
27 |
||
28 |
/** |
|
29 |
* @param <X> description |
|
30 |
*/ |
|
31 |
public class typaram_name_not_found { } |
|
32 |
||
33 |
/** |
|
34 |
* @see Object#tooStrong() |
|
35 |
*/ |
|
36 |
public void ref_not_found() { } |
|
37 |
||
38 |
/** |
|
39 |
* @return x description |
|
40 |
*/ |
|
41 |
public int invalid_return; |
|
42 |
||
43 |
/** |
|
44 |
* @return x description |
|
45 |
*/ |
|
46 |
public void invalid_return(); |
|
47 |
||
48 |
/** |
|
49 |
* @throws Exception description |
|
50 |
*/ |
|
51 |
public void exception_not_thrown() { } |
|
19125
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
52 |
|
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
53 |
/** |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
54 |
* @param <T> throwable |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
55 |
* @throws T description |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
56 |
*/ |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
57 |
public <T extends Throwable> void valid_throws_generic() throws T { } |
20256
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
58 |
|
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
59 |
/** |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
60 |
* {@link java.util.List<String>} |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
61 |
* {@link java.util.List<String>#equals} |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
62 |
* @see java.util.List<String> |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
63 |
* @see java.util.List<String>#equals |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
64 |
*/ |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
65 |
public void invalid_type_args() { } |
14952 | 66 |
} |
67 |