langtools/test/tools/doclint/ReferenceTest.java
author katleman
Tue, 21 Jan 2014 18:17:23 -0800
changeset 22365 895bfde469d4
parent 20256 9154c5cc0d9f
child 30730 d3ce7619db2c
permissions -rw-r--r--
Added tag jdk9-b01 for changeset ae2d94255f32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     1
/*
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     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
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     4
 * @summary Add new doclint package
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     5
 * @build DocLintTester
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     6
 * @run main DocLintTester -Xmsgs:-reference ReferenceTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     8
 */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     9
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    10
/** */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    11
public class ReferenceTest {
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    12
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    13
     * @param x description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    14
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    15
    public int invalid_param;
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    16
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    17
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    18
     * @param x description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    19
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    20
    public class InvalidParam { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    21
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    22
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    23
     * @param x description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    24
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    25
    public void param_name_not_found(int a) { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    26
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    27
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    28
     * @param <X> description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    29
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    30
    public class typaram_name_not_found { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    31
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    32
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    33
     * @see Object#tooStrong()
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    34
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    35
    public void ref_not_found() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    36
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    37
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    38
     * @return x description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    39
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    40
    public int invalid_return;
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    41
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    42
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    43
     * @return x description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    44
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    45
    public void invalid_return();
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    46
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    47
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    48
     * @throws Exception description
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    49
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    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
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    65
}
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    66