< prev index next >

test/jdk/javadoc/doclet/testTypeAnnotations/TestTypeAnnotations.java

Print this page




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug      8005091 8009686 8025633 8026567
  27  * @summary  Make sure that type annotations are displayed correctly
  28  * @author   Bhavesh Patel
  29  * @library  ../lib
  30  * @modules jdk.javadoc
  31  * @build    JavadocTester
  32  * @run main TestTypeAnnotations
  33  */
  34 
  35 public class TestTypeAnnotations extends JavadocTester {
  36 
  37     public static void main(String... args) throws Exception {
  38         TestTypeAnnotations tester = new TestTypeAnnotations();
  39         tester.runTests();
  40     }
  41 
  42     @Test
  43     void test() {
  44         javadoc("-d", "out",
  45                 "-sourcepath", testSrc,
  46                 "-private",


  57 
  58                 "implements <a href=\"../typeannos/ClassExtB.html\" title=\""
  59                 + "annotation in typeannos\">@ClassExtB</a> java.lang.CharSequence, "
  60                 + "<a href=\"../typeannos/ClassExtA.html\" title=\"annotation in "
  61                 + "typeannos\">@ClassExtA</a> <a href=\"../typeannos/ParameterizedInterface.html\" "
  62                 + "title=\"interface in typeannos\">ParameterizedInterface</a>&lt;"
  63                 + "<a href=\"../typeannos/ClassExtB.html\" title=\"annotation in "
  64                 + "typeannos\">@ClassExtB</a> java.lang.String&gt;</pre>");
  65 
  66         checkOutput("typeannos/MyInterface.html", true,
  67                 "extends <a href=\"../typeannos/ClassExtA.html\" title=\"annotation "
  68                 + "in typeannos\">@ClassExtA</a> <a href=\"../typeannos/"
  69                 + "ParameterizedInterface.html\" title=\"interface in typeannos\">"
  70                 + "ParameterizedInterface</a>&lt;<a href=\"../typeannos/ClassExtA.html\" "
  71                 + "title=\"annotation in typeannos\">@ClassExtA</a> java.lang.String&gt;, "
  72                 + "<a href=\"../typeannos/ClassExtB.html\" title=\"annotation in "
  73                 + "typeannos\">@ClassExtB</a> java.lang.CharSequence</pre>");
  74 
  75         // Test for type annotations on Class Parameters (ClassParameters.java).
  76         checkOutput("typeannos/ExtendsBound.html", true,
  77                 "class <span class=\"typeNameLabel\">ExtendsBound&lt;K extends <a "
  78                 + "href=\"../typeannos/ClassParamA.html\" title=\"annotation in "
  79                 + "typeannos\">@ClassParamA</a> java.lang.String&gt;</span>");
  80 
  81         checkOutput("typeannos/ExtendsGeneric.html", true,
  82                 "<pre>class <span class=\"typeNameLabel\">ExtendsGeneric&lt;K extends "
  83                 + "<a href=\"../typeannos/ClassParamA.html\" title=\"annotation in "
  84                 + "typeannos\">@ClassParamA</a> <a href=\"../typeannos/Unannotated.html\" "
  85                 + "title=\"class in typeannos\">Unannotated</a>&lt;<a href=\""
  86                 + "../typeannos/ClassParamB.html\" title=\"annotation in typeannos\">"
  87                 + "@ClassParamB</a> java.lang.String&gt;&gt;</span>");
  88 
  89         checkOutput("typeannos/TwoBounds.html", true,
  90                 "<pre>class <span class=\"typeNameLabel\">TwoBounds&lt;K extends <a href=\""
  91                 + "../typeannos/ClassParamA.html\" title=\"annotation in typeannos\">"
  92                 + "@ClassParamA</a> java.lang.String,V extends <a href=\"../typeannos/"
  93                 + "ClassParamB.html\" title=\"annotation in typeannos\">@ClassParamB"
  94                 + "</a> java.lang.String&gt;</span>");
  95 
  96         checkOutput("typeannos/Complex1.html", true,
  97                 "class <span class=\"typeNameLabel\">Complex1&lt;K extends <a href=\"../"
  98                 + "typeannos/ClassParamA.html\" title=\"annotation in typeannos\">"
  99                 + "@ClassParamA</a> java.lang.String &amp; java.lang.Runnable&gt;</span>");
 100 
 101         checkOutput("typeannos/Complex2.html", true,
 102                 "class <span class=\"typeNameLabel\">Complex2&lt;K extends java.lang."
 103                 + "String &amp; <a href=\"../typeannos/ClassParamB.html\" title=\""
 104                 + "annotation in typeannos\">@ClassParamB</a> java.lang.Runnable&gt;</span>");
 105 
 106         checkOutput("typeannos/ComplexBoth.html", true,
 107                 "class <span class=\"typeNameLabel\">ComplexBoth&lt;K extends <a href=\""
 108                 + "../typeannos/ClassParamA.html\" title=\"annotation in typeannos\""
 109                 + ">@ClassParamA</a> java.lang.String &amp; <a href=\"../typeannos/"
 110                 + "ClassParamA.html\" title=\"annotation in typeannos\">@ClassParamA"
 111                 + "</a> java.lang.Runnable&gt;</span>");
 112 
 113         // Test for type annotations on fields (Fields.java).
 114         checkOutput("typeannos/DefaultScope.html", true,
 115                 "<pre><a href=\"../typeannos/Parameterized.html\" title=\"class in "
 116                 + "typeannos\">Parameterized</a>&lt;<a href=\"../typeannos/FldA.html\" "
 117                 + "title=\"annotation in typeannos\">@FldA</a> java.lang.String,<a "
 118                 + "href=\"../typeannos/FldB.html\" title=\"annotation in typeannos\">"
 119                 + "@FldB</a> java.lang.String&gt; bothTypeArgs</pre>",
 120 
 121                 "<pre><a href=\"../typeannos/FldA.html\" title=\"annotation in "
 122                 + "typeannos\">@FldA</a> java.lang.String <a href=\"../typeannos/"
 123                 + "FldB.html\" title=\"annotation in typeannos\">@FldB</a> [] "
 124                 + "array1Deep</pre>",
 125 
 126                 "<pre>java.lang.String <a href=\"../typeannos/FldB.html\" "
 127                 + "title=\"annotation in typeannos\">@FldB</a> [][] array2SecondOld</pre>",


 243                 "<pre>void&nbsp;twoExceptions()\n"
 244                 + "            throws <a href=\"../typeannos/ThrA.html\" title=\""
 245                 + "annotation in typeannos\">@ThrA</a> java.lang.RuntimeException,\n"
 246                 + "                   <a href=\"../typeannos/ThrA.html\" title=\""
 247                 + "annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>");
 248 
 249         checkOutput("typeannos/ThrPublicModified.html", true,
 250                 "<pre>public final&nbsp;void&nbsp;oneException(java.lang.String&nbsp;a)\n"
 251                 + "                        throws <a href=\"../typeannos/ThrA.html\" "
 252                 + "title=\"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>",
 253 
 254                 "<pre>public final&nbsp;void&nbsp;twoExceptions(java.lang.String&nbsp;a)\n"
 255                 + "                         throws <a href=\"../typeannos/ThrA.html\" "
 256                 + "title=\"annotation in typeannos\">@ThrA</a> java.lang.RuntimeException,\n"
 257                 + "                                <a href=\"../typeannos/ThrA.html\" "
 258                 + "title=\"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>");
 259 
 260         checkOutput("typeannos/ThrWithValue.html", true,
 261                 "<pre>void&nbsp;oneException()\n"
 262                 + "           throws <a href=\"../typeannos/ThrB.html\" title=\""
 263                 + "annotation in typeannos\">@ThrB</a>(<a href=\"../typeannos/"
 264                 + "ThrB.html#value--\">value</a>=\"m\") java.lang.Exception</pre>",
 265 
 266                 "<pre>void&nbsp;twoExceptions()\n"
 267                 + "            throws <a href=\"../typeannos/ThrB.html\" title=\""
 268                 + "annotation in typeannos\">@ThrB</a>(<a href=\"../typeannos/"
 269                 + "ThrB.html#value--\">value</a>=\"m\") java.lang.RuntimeException,\n"
 270                 + "                   <a href=\"../typeannos/ThrA.html\" title=\""
 271                 + "annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>");
 272 
 273         // Test for type annotations on type parameters (TypeParameters.java).
 274         checkOutput("typeannos/TestMethods.html", true,
 275                 "<pre>&lt;K,<a href=\"../typeannos/TyParaA.html\" title=\"annotation in typeannos\">"
 276                 + "@TyParaA</a> V extends <a href=\"../typeannos/TyParaA.html\" "
 277                 + "title=\"annotation in typeannos\">@TyParaA</a> "
 278                 + "java.lang.String&gt;&nbsp;void&nbsp;secondAnnotated()</pre>"
 279         );
 280 
 281         // Test for type annotations on wildcard type (Wildcards.java).
 282         checkOutput("typeannos/BoundTest.html", true,
 283                 "<pre>void&nbsp;wcExtends(<a href=\"../typeannos/MyList.html\" "
 284                 + "title=\"class in typeannos\">MyList</a>&lt;? extends <a href=\""
 285                 + "../typeannos/WldA.html\" title=\"annotation in typeannos\">@WldA"
 286                 + "</a> java.lang.String&gt;&nbsp;l)</pre>",
 287 
 288                 "<pre><a href=\"../typeannos/MyList.html\" title=\"class in "
 289                 + "typeannos\">MyList</a>&lt;? super <a href=\"../typeannos/WldA.html\" "
 290                 + "title=\"annotation in typeannos\">@WldA</a> java.lang.String&gt;"
 291                 + "&nbsp;returnWcSuper()</pre>");
 292 
 293         checkOutput("typeannos/BoundWithValue.html", true,
 294                 "<pre>void&nbsp;wcSuper(<a href=\"../typeannos/MyList.html\" title=\""
 295                 + "class in typeannos\">MyList</a>&lt;? super <a href=\"../typeannos/"
 296                 + "WldB.html\" title=\"annotation in typeannos\">@WldB</a>(<a href=\""
 297                 + "../typeannos/WldB.html#value--\">value</a>=\"m\") java.lang."
 298                 + "String&gt;&nbsp;l)</pre>",
 299 
 300                 "<pre><a href=\"../typeannos/MyList.html\" title=\"class in "
 301                 + "typeannos\">MyList</a>&lt;? extends <a href=\"../typeannos/WldB."
 302                 + "html\" title=\"annotation in typeannos\">@WldB</a>(<a href=\"../"
 303                 + "typeannos/WldB.html#value--\">value</a>=\"m\") java.lang.String"
 304                 + "&gt;&nbsp;returnWcExtends()</pre>");
 305 
 306         // Test for receiver annotations (Receivers.java).
 307         checkOutput("typeannos/DefaultUnmodified.html", true,
 308                 "<pre>void&nbsp;withException(<a href=\"../typeannos/RcvrA.html\" "
 309                 + "title=\"annotation in typeannos\">@RcvrA</a>&nbsp;"
 310                 + "DefaultUnmodified&nbsp;this)\n"
 311                 + "            throws java."
 312                 + "lang.Exception</pre>",
 313 
 314                 "<pre>java.lang.String&nbsp;nonVoid(<a href=\"../typeannos/RcvrA."
 315                 + "html\" title=\"annotation in typeannos\">@RcvrA</a> <a href=\"../"
 316                 + "typeannos/RcvrB.html\" title=\"annotation in typeannos\">@RcvrB"
 317                 + "</a>(<a href=\"../typeannos/RcvrB.html#value--\">value</a>=\"m\")"
 318                 + "&nbsp;DefaultUnmodified&nbsp;this)</pre>",
 319 
 320                 "<pre>&lt;T extends java.lang.Runnable&gt;&nbsp;void&nbsp;accept("
 321                 + "<a href=\"../typeannos/RcvrA.html\" title=\"annotation in "
 322                 + "typeannos\">@RcvrA</a>&nbsp;DefaultUnmodified&nbsp;this,\n"
 323                 + "                                           T&nbsp;r)\n"
 324                 + "                                    throws java.lang.Exception</pre>");
 325 
 326         checkOutput("typeannos/PublicModified.html", true,
 327                 "<pre>public final&nbsp;java.lang.String&nbsp;nonVoid(<a href=\""
 328                 + "../typeannos/RcvrA.html\" title=\"annotation in typeannos\">"
 329                 + "@RcvrA</a>&nbsp;PublicModified&nbsp;this)</pre>",
 330 
 331                 "<pre>public final&nbsp;&lt;T extends java.lang.Runnable&gt;&nbsp;"
 332                 + "void&nbsp;accept(<a href=\"../typeannos/RcvrA.html\" title=\""
 333                 + "annotation in typeannos\">@RcvrA</a>&nbsp;PublicModified&nbsp;this,\n"
 334                 + "                                                        T&nbsp;r)\n"
 335                 + "                                                 throws java.lang.Exception</pre>");
 336 
 337         checkOutput("typeannos/WithValue.html", true,
 338                 "<pre>&lt;T extends java.lang.Runnable&gt;&nbsp;void&nbsp;accept("
 339                 + "<a href=\"../typeannos/RcvrB.html\" title=\"annotation in "
 340                 + "typeannos\">@RcvrB</a>(<a href=\"../typeannos/RcvrB.html#value--\">"
 341                 + "value</a>=\"m\")&nbsp;WithValue&nbsp;this,\n"
 342                 + "                                           T&nbsp;r)\n"
 343                 + "                                    throws java.lang.Exception</pre>");
 344 
 345         checkOutput("typeannos/WithFinal.html", true,
 346                 "<pre>java.lang.String&nbsp;nonVoid(<a href=\"../typeannos/RcvrB."
 347                 + "html\" title=\"annotation in typeannos\">@RcvrB</a>(<a href=\"../"
 348                 + "typeannos/RcvrB.html#value--\">value</a>=\"m\")&nbsp;WithFinal"
 349                 + "&nbsp;this)</pre>");
 350 
 351         checkOutput("typeannos/WithBody.html", true,
 352                 "<pre>void&nbsp;field(<a href=\"../typeannos/RcvrA.html\" title=\""
 353                 + "annotation in typeannos\">@RcvrA</a>&nbsp;WithBody&nbsp;this)</pre>");
 354 
 355         checkOutput("typeannos/Generic2.html", true,
 356                 "<pre>void&nbsp;test2(<a href=\"../typeannos/RcvrA.html\" title=\""
 357                 + "annotation in typeannos\">@RcvrA</a>&nbsp;Generic2&lt;X&gt;&nbsp;this)</pre>");
 358     }
 359 }


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug      8005091 8009686 8025633 8026567 6469562
  27  * @summary  Make sure that type annotations are displayed correctly
  28  * @author   Bhavesh Patel
  29  * @library  ../lib
  30  * @modules jdk.javadoc
  31  * @build    JavadocTester
  32  * @run main TestTypeAnnotations
  33  */
  34 
  35 public class TestTypeAnnotations extends JavadocTester {
  36 
  37     public static void main(String... args) throws Exception {
  38         TestTypeAnnotations tester = new TestTypeAnnotations();
  39         tester.runTests();
  40     }
  41 
  42     @Test
  43     void test() {
  44         javadoc("-d", "out",
  45                 "-sourcepath", testSrc,
  46                 "-private",


  57 
  58                 "implements <a href=\"../typeannos/ClassExtB.html\" title=\""
  59                 + "annotation in typeannos\">@ClassExtB</a> java.lang.CharSequence, "
  60                 + "<a href=\"../typeannos/ClassExtA.html\" title=\"annotation in "
  61                 + "typeannos\">@ClassExtA</a> <a href=\"../typeannos/ParameterizedInterface.html\" "
  62                 + "title=\"interface in typeannos\">ParameterizedInterface</a>&lt;"
  63                 + "<a href=\"../typeannos/ClassExtB.html\" title=\"annotation in "
  64                 + "typeannos\">@ClassExtB</a> java.lang.String&gt;</pre>");
  65 
  66         checkOutput("typeannos/MyInterface.html", true,
  67                 "extends <a href=\"../typeannos/ClassExtA.html\" title=\"annotation "
  68                 + "in typeannos\">@ClassExtA</a> <a href=\"../typeannos/"
  69                 + "ParameterizedInterface.html\" title=\"interface in typeannos\">"
  70                 + "ParameterizedInterface</a>&lt;<a href=\"../typeannos/ClassExtA.html\" "
  71                 + "title=\"annotation in typeannos\">@ClassExtA</a> java.lang.String&gt;, "
  72                 + "<a href=\"../typeannos/ClassExtB.html\" title=\"annotation in "
  73                 + "typeannos\">@ClassExtB</a> java.lang.CharSequence</pre>");
  74 
  75         // Test for type annotations on Class Parameters (ClassParameters.java).
  76         checkOutput("typeannos/ExtendsBound.html", true,
  77                 "class <span class=\"typeNameLabel\">ExtendsBound&lt;K extends <a "
  78                 + "href=\"../typeannos/ClassParamA.html\" title=\"annotation in "
  79                 + "typeannos\">@ClassParamA</a> java.lang.String&gt;</span>");
  80 
  81         checkOutput("typeannos/ExtendsGeneric.html", true,
  82                 "<pre>class <span class=\"typeNameLabel\">ExtendsGeneric&lt;K extends "
  83                 + "<a href=\"../typeannos/ClassParamA.html\" title=\"annotation in "
  84                 + "typeannos\">@ClassParamA</a> <a href=\"../typeannos/Unannotated.html\" "
  85                 + "title=\"class in typeannos\">Unannotated</a>&lt;<a href=\""
  86                 + "../typeannos/ClassParamB.html\" title=\"annotation in typeannos\">"
  87                 + "@ClassParamB</a> java.lang.String&gt;&gt;</span>");
  88 
  89         checkOutput("typeannos/TwoBounds.html", true,
  90                 "<pre>class <span class=\"typeNameLabel\">TwoBounds&lt;K extends <a href=\""
  91                 + "../typeannos/ClassParamA.html\" title=\"annotation in typeannos\">"
  92                 + "@ClassParamA</a> java.lang.String,V extends <a href=\"../typeannos/"
  93                 + "ClassParamB.html\" title=\"annotation in typeannos\">@ClassParamB"
  94                 + "</a> java.lang.String&gt;</span>");
  95 
  96         checkOutput("typeannos/Complex1.html", true,
  97                 "class <span class=\"typeNameLabel\">Complex1&lt;K extends <a href=\"../"
  98                 + "typeannos/ClassParamA.html\" title=\"annotation in typeannos\">"
  99                 + "@ClassParamA</a> java.lang.String &amp; java.lang.Runnable&gt;</span>");
 100 
 101         checkOutput("typeannos/Complex2.html", true,
 102                 "class <span class=\"typeNameLabel\">Complex2&lt;K extends java.lang."
 103                 + "String &amp; <a href=\"../typeannos/ClassParamB.html\" title=\""
 104                 + "annotation in typeannos\">@ClassParamB</a> java.lang.Runnable&gt;</span>");
 105 
 106         checkOutput("typeannos/ComplexBoth.html", true,
 107                 "class <span class=\"typeNameLabel\">ComplexBoth&lt;K extends <a href=\""
 108                 + "../typeannos/ClassParamA.html\" title=\"annotation in typeannos\""
 109                 + ">@ClassParamA</a> java.lang.String &amp; <a href=\"../typeannos/"
 110                 + "ClassParamA.html\" title=\"annotation in typeannos\">@ClassParamA"
 111                 + "</a> java.lang.Runnable&gt;</span>");
 112 
 113         // Test for type annotations on fields (Fields.java).
 114         checkOutput("typeannos/DefaultScope.html", true,
 115                 "<pre><a href=\"../typeannos/Parameterized.html\" title=\"class in "
 116                 + "typeannos\">Parameterized</a>&lt;<a href=\"../typeannos/FldA.html\" "
 117                 + "title=\"annotation in typeannos\">@FldA</a> java.lang.String,<a "
 118                 + "href=\"../typeannos/FldB.html\" title=\"annotation in typeannos\">"
 119                 + "@FldB</a> java.lang.String&gt; bothTypeArgs</pre>",
 120 
 121                 "<pre><a href=\"../typeannos/FldA.html\" title=\"annotation in "
 122                 + "typeannos\">@FldA</a> java.lang.String <a href=\"../typeannos/"
 123                 + "FldB.html\" title=\"annotation in typeannos\">@FldB</a> [] "
 124                 + "array1Deep</pre>",
 125 
 126                 "<pre>java.lang.String <a href=\"../typeannos/FldB.html\" "
 127                 + "title=\"annotation in typeannos\">@FldB</a> [][] array2SecondOld</pre>",


 243                 "<pre>void&nbsp;twoExceptions()\n"
 244                 + "            throws <a href=\"../typeannos/ThrA.html\" title=\""
 245                 + "annotation in typeannos\">@ThrA</a> java.lang.RuntimeException,\n"
 246                 + "                   <a href=\"../typeannos/ThrA.html\" title=\""
 247                 + "annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>");
 248 
 249         checkOutput("typeannos/ThrPublicModified.html", true,
 250                 "<pre>public final&nbsp;void&nbsp;oneException(java.lang.String&nbsp;a)\n"
 251                 + "                        throws <a href=\"../typeannos/ThrA.html\" "
 252                 + "title=\"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>",
 253 
 254                 "<pre>public final&nbsp;void&nbsp;twoExceptions(java.lang.String&nbsp;a)\n"
 255                 + "                         throws <a href=\"../typeannos/ThrA.html\" "
 256                 + "title=\"annotation in typeannos\">@ThrA</a> java.lang.RuntimeException,\n"
 257                 + "                                <a href=\"../typeannos/ThrA.html\" "
 258                 + "title=\"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>");
 259 
 260         checkOutput("typeannos/ThrWithValue.html", true,
 261                 "<pre>void&nbsp;oneException()\n"
 262                 + "           throws <a href=\"../typeannos/ThrB.html\" title=\""
 263                 + "annotation in typeannos\">@ThrB</a>("
 264                 + "\"m\") java.lang.Exception</pre>",
 265 
 266                 "<pre>void&nbsp;twoExceptions()\n"
 267                 + "            throws <a href=\"../typeannos/ThrB.html\" title=\""
 268                 + "annotation in typeannos\">@ThrB</a>("
 269                 + "\"m\") java.lang.RuntimeException,\n"
 270                 + "                   <a href=\"../typeannos/ThrA.html\" title=\""
 271                 + "annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>");
 272 
 273         // Test for type annotations on type parameters (TypeParameters.java).
 274         checkOutput("typeannos/TestMethods.html", true,
 275                 "<pre>&lt;K,<a href=\"../typeannos/TyParaA.html\" title=\"annotation in typeannos\">"
 276                 + "@TyParaA</a> V extends <a href=\"../typeannos/TyParaA.html\" "
 277                 + "title=\"annotation in typeannos\">@TyParaA</a> "
 278                 + "java.lang.String&gt;&nbsp;void&nbsp;secondAnnotated()</pre>"
 279         );
 280 
 281         // Test for type annotations on wildcard type (Wildcards.java).
 282         checkOutput("typeannos/BoundTest.html", true,
 283                 "<pre>void&nbsp;wcExtends(<a href=\"../typeannos/MyList.html\" "
 284                 + "title=\"class in typeannos\">MyList</a>&lt;? extends <a href=\""
 285                 + "../typeannos/WldA.html\" title=\"annotation in typeannos\">@WldA"
 286                 + "</a> java.lang.String&gt;&nbsp;l)</pre>",
 287 
 288                 "<pre><a href=\"../typeannos/MyList.html\" title=\"class in "
 289                 + "typeannos\">MyList</a>&lt;? super <a href=\"../typeannos/WldA.html\" "
 290                 + "title=\"annotation in typeannos\">@WldA</a> java.lang.String&gt;"
 291                 + "&nbsp;returnWcSuper()</pre>");
 292 
 293         checkOutput("typeannos/BoundWithValue.html", true,
 294                 "<pre>void&nbsp;wcSuper(<a href=\"../typeannos/MyList.html\" title=\""
 295                 + "class in typeannos\">MyList</a>&lt;? super <a href=\"../typeannos/"
 296                 + "WldB.html\" title=\"annotation in typeannos\">@WldB</a>("
 297                 + "\"m\") java.lang."
 298                 + "String&gt;&nbsp;l)</pre>",
 299 
 300                 "<pre><a href=\"../typeannos/MyList.html\" title=\"class in "
 301                 + "typeannos\">MyList</a>&lt;? extends <a href=\"../typeannos/WldB."
 302                 + "html\" title=\"annotation in typeannos\">@WldB</a>("
 303                 + "\"m\") java.lang.String"
 304                 + "&gt;&nbsp;returnWcExtends()</pre>");
 305 
 306         // Test for receiver annotations (Receivers.java).
 307         checkOutput("typeannos/DefaultUnmodified.html", true,
 308                 "<pre>void&nbsp;withException(<a href=\"../typeannos/RcvrA.html\" "
 309                 + "title=\"annotation in typeannos\">@RcvrA</a>&nbsp;"
 310                 + "DefaultUnmodified&nbsp;this)\n"
 311                 + "            throws java."
 312                 + "lang.Exception</pre>",
 313 
 314                 "<pre>java.lang.String&nbsp;nonVoid(<a href=\"../typeannos/RcvrA."
 315                 + "html\" title=\"annotation in typeannos\">@RcvrA</a> <a href=\"../"
 316                 + "typeannos/RcvrB.html\" title=\"annotation in typeannos\">@RcvrB"
 317                 + "</a>(\"m\")"
 318                 + "&nbsp;DefaultUnmodified&nbsp;this)</pre>",
 319 
 320                 "<pre>&lt;T extends java.lang.Runnable&gt;&nbsp;void&nbsp;accept("
 321                 + "<a href=\"../typeannos/RcvrA.html\" title=\"annotation in "
 322                 + "typeannos\">@RcvrA</a>&nbsp;DefaultUnmodified&nbsp;this,\n"
 323                 + "                                           T&nbsp;r)\n"
 324                 + "                                    throws java.lang.Exception</pre>");
 325 
 326         checkOutput("typeannos/PublicModified.html", true,
 327                 "<pre>public final&nbsp;java.lang.String&nbsp;nonVoid(<a href=\""
 328                 + "../typeannos/RcvrA.html\" title=\"annotation in typeannos\">"
 329                 + "@RcvrA</a>&nbsp;PublicModified&nbsp;this)</pre>",
 330 
 331                 "<pre>public final&nbsp;&lt;T extends java.lang.Runnable&gt;&nbsp;"
 332                 + "void&nbsp;accept(<a href=\"../typeannos/RcvrA.html\" title=\""
 333                 + "annotation in typeannos\">@RcvrA</a>&nbsp;PublicModified&nbsp;this,\n"
 334                 + "                                                        T&nbsp;r)\n"
 335                 + "                                                 throws java.lang.Exception</pre>");
 336 
 337         checkOutput("typeannos/WithValue.html", true,
 338                 "<pre>&lt;T extends java.lang.Runnable&gt;&nbsp;void&nbsp;accept("
 339                 + "<a href=\"../typeannos/RcvrB.html\" title=\"annotation in "
 340                 + "typeannos\">@RcvrB</a>("
 341                 + "\"m\")&nbsp;WithValue&nbsp;this,\n"
 342                 + "                                           T&nbsp;r)\n"
 343                 + "                                    throws java.lang.Exception</pre>");
 344 
 345         checkOutput("typeannos/WithFinal.html", true,
 346                 "<pre>java.lang.String&nbsp;nonVoid(<a href=\"../typeannos/RcvrB."
 347                 + "html\" title=\"annotation in typeannos\">@RcvrB</a>("
 348                 + "\"m\")&nbsp;WithFinal"
 349                 + "&nbsp;this)</pre>");
 350 
 351         checkOutput("typeannos/WithBody.html", true,
 352                 "<pre>void&nbsp;field(<a href=\"../typeannos/RcvrA.html\" title=\""
 353                 + "annotation in typeannos\">@RcvrA</a>&nbsp;WithBody&nbsp;this)</pre>");
 354 
 355         checkOutput("typeannos/Generic2.html", true,
 356                 "<pre>void&nbsp;test2(<a href=\"../typeannos/RcvrA.html\" title=\""
 357                 + "annotation in typeannos\">@RcvrA</a>&nbsp;Generic2&lt;X&gt;&nbsp;this)</pre>");
 358     }
 359 }
< prev index next >