langtools/test/tools/doclint/AnchorTest.java
author katleman
Tue, 21 Jan 2014 18:17:23 -0800
changeset 22365 895bfde469d4
parent 15359 a73dcb8dcbae
child 30730 d3ce7619db2c
permissions -rw-r--r--
Added tag jdk9-b01 for changeset ae2d94255f32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15359
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     1
/*
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     3
 * @bug 8004832
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     4
 * @summary Add new doclint package
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     5
 * @build DocLintTester
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     6
 * @run main DocLintTester -ref AnchorTest.out AnchorTest.java
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     7
 */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     8
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     9
/** */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    10
public class AnchorTest {
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    11
    // tests for <a name=value>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    12
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    13
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    14
     * <a name=foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    15
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    16
    public void a_name_foo() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    17
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    18
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    19
     * <a name=foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    20
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    21
    public void a_name_already_defined() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    22
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    23
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    24
     * <a name=></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    25
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    26
    public void a_name_empty() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    27
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    28
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    29
     * <a name=123 ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    30
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    31
    public void a_name_invalid() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    32
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    33
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    34
     * <a name ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    35
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    36
    public void a_name_missing() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    37
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    38
    // tests for <a id=value>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    39
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    40
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    41
     * <a id=a_id_foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    42
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    43
    public void a_id_foo() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    44
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    45
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    46
     * <a id=foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    47
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    48
    public void a_id_already_defined() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    49
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    50
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    51
     * <a id=></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    52
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    53
    public void a_id_empty() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    54
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    55
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    56
     * <a id=123 ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    57
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    58
    public void a_id_invalid() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    59
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    60
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    61
     * <a id ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    62
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    63
    public void a_id_missing() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    64
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    65
    // tests for id=value on non-<a> tags
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    66
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    67
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    68
     * <p id=p_id_foo>text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    69
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    70
    public void p_id_foo() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    71
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    72
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    73
     * <p id=foo>text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    74
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    75
    public void p_id_already_defined() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    76
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    77
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    78
     * <p id=>text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    79
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    80
    public void p_id_empty() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    81
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    82
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    83
     * <p id=123 >text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    84
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    85
    public void p_id_invalid() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    86
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    87
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    88
     * <p id >text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    89
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    90
    public void p_id_missing() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    91
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    92
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    93
}