langtools/test/tools/doclint/AnchorTest.java
author mcimadamore
Wed, 26 Oct 2016 15:41:25 +0100
changeset 41856 13a056e8f16e
parent 30730 d3ce7619db2c
permissions -rw-r--r--
8168774: Polymorhic signature method check crashes javac Summary: Check for polysig method assumes arity is greater than zero Reviewed-by: vromero
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
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15359
diff changeset
     5
 * @modules jdk.compiler/com.sun.tools.doclint
15359
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     6
 * @build DocLintTester
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -ref AnchorTest.out AnchorTest.java
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
/** */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    11
public class AnchorTest {
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    12
    // tests for <a name=value>
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    15
     * <a name=foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    16
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    17
    public void a_name_foo() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    20
     * <a name=foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    21
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    22
    public void a_name_already_defined() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    25
     * <a name=></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    26
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    27
    public void a_name_empty() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    30
     * <a name=123 ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    31
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    32
    public void a_name_invalid() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    35
     * <a name ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    36
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    37
    public void a_name_missing() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    38
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    39
    // tests for <a id=value>
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    42
     * <a id=a_id_foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    43
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    44
    public void a_id_foo() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    47
     * <a id=foo></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    48
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    49
    public void a_id_already_defined() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    52
     * <a id=></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    53
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    54
    public void a_id_empty() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    57
     * <a id=123 ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    58
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    59
    public void a_id_invalid() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    62
     * <a id ></a>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    63
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    64
    public void a_id_missing() { }
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    65
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    66
    // tests for id=value on non-<a> tags
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    69
     * <p id=p_id_foo>text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    70
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    71
    public void p_id_foo() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    74
     * <p id=foo>text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    75
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    76
    public void p_id_already_defined() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    79
     * <p id=>text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    80
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    81
    public void p_id_empty() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    84
     * <p id=123 >text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    85
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    86
    public void p_id_invalid() { }
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
    /**
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    89
     * <p id >text</p>
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    90
     */
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    91
    public void p_id_missing() { }
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
a73dcb8dcbae 8006224: Doclint NPE for attribute with no value
jjg
parents:
diff changeset
    94
}