langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
author jjg
Tue, 22 Apr 2014 17:57:40 -0700
changeset 24072 e7549dcbc4af
parent 24065 fc4022e50129
child 24399 af1a0220d0fa
permissions -rw-r--r--
8040903: Clean up use of BUG_ID in javadoc tests Reviewed-by: ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     1
/*
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21011
diff changeset
     2
 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     4
 *
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     8
 *
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    13
 * accompanied this code).
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    14
 *
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    18
 *
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    21
 * questions.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    22
 */
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    23
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    24
/*
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    25
 * @test
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    26
 * @bug      8005092
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    27
 * @summary  Test repeated annotations output.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    28
 * @author   bpatel
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    29
 * @library  ../lib/
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    30
 * @build    JavadocTester TestRepeatedAnnotations
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    31
 * @run main TestRepeatedAnnotations
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    32
 */
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    33
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    34
public class TestRepeatedAnnotations extends JavadocTester {
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    35
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    36
    //Test information.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    37
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    38
    //Javadoc arguments.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    39
    private static final String[] ARGS = new String[] {
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    40
        "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", "pkg1"
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    41
    };
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    42
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    43
    //Input for string search tests.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    44
    private static final String[][] TEST = {
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    45
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    46
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    47
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    48
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    49
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    50
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    51
            "<a href=\"../pkg/ContaineeRegDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    52
            "title=\"annotation in pkg\">@ContaineeRegDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    53
            "<a href=\"../pkg/ContaineeRegDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    54
            "title=\"annotation in pkg\">@ContaineeRegDoc</a>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    55
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    56
            "<a href=\"../pkg/RegContainerDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    57
            "title=\"annotation in pkg\">@RegContainerDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
    58
            "(<a href=\"../pkg/RegContainerDoc.html#value--\">value</a>={" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    59
            "<a href=\"../pkg/RegContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    60
            "title=\"annotation in pkg\">@RegContaineeNotDoc</a>," +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    61
            "<a href=\"../pkg/RegContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    62
            "title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    63
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    64
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    65
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    66
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    67
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    68
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    69
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    70
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    71
            "<a href=\"../pkg/ContainerSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    72
            "title=\"annotation in pkg\">@ContainerSynthDoc</a>(" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
    73
            "<a href=\"../pkg/ContainerSynthDoc.html#value--\">value</a>=" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    74
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    75
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a>)"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    76
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    77
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    78
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    79
            "<a href=\"../pkg/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    80
            "title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    81
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    82
        { "pkg/D.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    83
            "<a href=\"../pkg/RegDoc.html\" title=\"annotation in pkg\">@RegDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
    84
            "(<a href=\"../pkg/RegDoc.html#x--\">x</a>=1)"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    85
        { "pkg/D.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    86
            "<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
    87
            "(<a href=\"../pkg/RegArryDoc.html#y--\">y</a>=1)"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    88
        { "pkg/D.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    89
            "<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
    90
            "(<a href=\"../pkg/RegArryDoc.html#y--\">y</a>={1,2})"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    91
        { "pkg/D.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    92
            "<a href=\"../pkg/NonSynthDocContainer.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    93
            "title=\"annotation in pkg\">@NonSynthDocContainer</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
    94
            "(<a href=\"../pkg/NonSynthDocContainer.html#value--\">value</a>=" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    95
            "<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>)"},
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    96
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    97
        { "pkg1/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    98
            "<a href=\"../pkg1/RegContainerValDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
    99
            "title=\"annotation in pkg1\">@RegContainerValDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   100
            "(<a href=\"../pkg1/RegContainerValDoc.html#value--\">value</a>={" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   101
            "<a href=\"../pkg1/RegContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   102
            "title=\"annotation in pkg1\">@RegContaineeNotDoc</a>," +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   103
            "<a href=\"../pkg1/RegContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   104
            "title=\"annotation in pkg1\">@RegContaineeNotDoc</a>}," +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   105
            "<a href=\"../pkg1/RegContainerValDoc.html#y--\">y</a>=3)"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   106
        { "pkg1/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   107
            "<a href=\"../pkg1/ContainerValDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   108
            "title=\"annotation in pkg1\">@ContainerValDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   109
            "(<a href=\"../pkg1/ContainerValDoc.html#value--\">value</a>={" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   110
            "<a href=\"../pkg1/ContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   111
            "title=\"annotation in pkg1\">@ContaineeNotDoc</a>," +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   112
            "<a href=\"../pkg1/ContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   113
            "title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   114
            "<a href=\"../pkg1/ContainerValDoc.html#x--\">x</a>=1)"}
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   115
    };
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   116
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   117
    private static final String[][] NEGATED_TEST = {
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   118
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   119
            "<a href=\"../pkg/RegContaineeDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   120
            "title=\"annotation in pkg\">@RegContaineeDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   121
            "<a href=\"../pkg/RegContaineeDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   122
            "title=\"annotation in pkg\">@RegContaineeDoc</a>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   123
        { "pkg/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   124
            "<a href=\"../pkg/RegContainerNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   125
            "title=\"annotation in pkg\">@RegContainerNotDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   126
            "(<a href=\"../pkg/RegContainerNotDoc.html#value--\">value</a>={" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   127
            "<a href=\"../pkg/RegContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   128
            "title=\"annotation in pkg\">@RegContaineeNotDoc</a>," +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   129
            "<a href=\"../pkg/RegContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   130
            "title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"},
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   131
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   132
        { "pkg1/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   133
            "<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   134
            "title=\"annotation in pkg1\">@ContaineeSynthDoc</a> " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   135
            "<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   136
            "title=\"annotation in pkg1\">@ContaineeSynthDoc</a>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   137
        { "pkg1/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   138
            "<a href=\"../pkg1/RegContainerValNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   139
            "title=\"annotation in pkg1\">@RegContainerValNotDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   140
            "(<a href=\"../pkg1/RegContainerValNotDoc.html#value--\">value</a>={" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   141
            "<a href=\"../pkg1/RegContaineeDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   142
            "title=\"annotation in pkg1\">@RegContaineeDoc</a>," +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   143
            "<a href=\"../pkg1/RegContaineeDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   144
            "title=\"annotation in pkg1\">@RegContaineeDoc</a>}," +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   145
            "<a href=\"../pkg1/RegContainerValNotDoc.html#y--\">y</a>=4)"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   146
        { "pkg1/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   147
            "<a href=\"../pkg1/ContainerValNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   148
            "title=\"annotation in pkg1\">@ContainerValNotDoc</a>" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   149
            "(<a href=\"../pkg1/ContainerValNotDoc.html#value--\">value</a>={" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   150
            "<a href=\"../pkg1/ContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   151
            "title=\"annotation in pkg1\">@ContaineeNotDoc</a>," +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   152
            "<a href=\"../pkg1/ContaineeNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   153
            "title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   154
            "<a href=\"../pkg1/ContainerValNotDoc.html#x--\">x</a>=2)"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
   155
        { "pkg1/C.html",
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   156
            "<a href=\"../pkg1/ContainerSynthNotDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   157
            "title=\"annotation in pkg1\">@ContainerSynthNotDoc</a>(" +
21011
cbd0e37fe4fb 8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
jjg
parents: 15035
diff changeset
   158
            "<a href=\"../pkg1/ContainerSynthNotDoc.html#value--\">value</a>=" +
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   159
            "<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   160
            "title=\"annotation in pkg1\">@ContaineeSynthDoc</a>)"}
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   161
    };
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   162
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   163
    /**
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   164
     * The entry point of the test.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   165
     * @param args the array of command line arguments.
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   166
     */
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   167
    public static void main(String[] args) {
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   168
        TestRepeatedAnnotations tester = new TestRepeatedAnnotations();
24065
fc4022e50129 8041150: Avoid silly use of static methods in JavadocTester
jjg
parents: 23971
diff changeset
   169
        tester.run(ARGS, TEST, NEGATED_TEST);
15035
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   170
        tester.printSummary();
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   171
    }
d03c311f44e6 8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff changeset
   172
}