author | katleman |
Tue, 21 Jan 2014 18:17:23 -0800 | |
changeset 22365 | 895bfde469d4 |
parent 20256 | 9154c5cc0d9f |
child 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 |
14952 | 5 |
* @build DocLintTester |
6 |
* @run main DocLintTester -Xmsgs:-reference ReferenceTest.java |
|
7 |
* @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java |
|
8 |
*/ |
|
9 |
||
10 |
/** */ |
|
11 |
public class ReferenceTest { |
|
12 |
/** |
|
13 |
* @param x description |
|
14 |
*/ |
|
15 |
public int invalid_param; |
|
16 |
||
17 |
/** |
|
18 |
* @param x description |
|
19 |
*/ |
|
20 |
public class InvalidParam { } |
|
21 |
||
22 |
/** |
|
23 |
* @param x description |
|
24 |
*/ |
|
25 |
public void param_name_not_found(int a) { } |
|
26 |
||
27 |
/** |
|
28 |
* @param <X> description |
|
29 |
*/ |
|
30 |
public class typaram_name_not_found { } |
|
31 |
||
32 |
/** |
|
33 |
* @see Object#tooStrong() |
|
34 |
*/ |
|
35 |
public void ref_not_found() { } |
|
36 |
||
37 |
/** |
|
38 |
* @return x description |
|
39 |
*/ |
|
40 |
public int invalid_return; |
|
41 |
||
42 |
/** |
|
43 |
* @return x description |
|
44 |
*/ |
|
45 |
public void invalid_return(); |
|
46 |
||
47 |
/** |
|
48 |
* @throws Exception description |
|
49 |
*/ |
|
50 |
public void exception_not_thrown() { } |
|
19125
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
51 |
|
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 |
* @param <T> throwable |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
54 |
* @throws T description |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
55 |
*/ |
db8cab0ecbd9
8020556: doclint does not check type variables for @throws
jjg
parents:
14962
diff
changeset
|
56 |
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
|
57 |
|
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 |
* {@link java.util.List<String>} |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
60 |
* {@link java.util.List<String>#equals} |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
61 |
* @see java.util.List<String> |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
62 |
* @see java.util.List<String>#equals |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
63 |
*/ |
9154c5cc0d9f
8002154: [doclint] doclint should check for issues which are errors in javadoc
jjg
parents:
19125
diff
changeset
|
64 |
public void invalid_type_args() { } |
14952 | 65 |
} |
66 |