21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4682448 4947464 5029946 8025633 |
26 * @bug 4682448 4947464 5029946 8025633 8026567 |
27 * @summary Verify that the public modifier does not show up in the |
27 * @summary Verify that the public modifier does not show up in the |
28 * documentation for public methods, as recommended by the JLS. |
28 * documentation for public methods, as recommended by the JLS. |
29 * If A implements I and B extends A, B should be in the list of |
29 * If A implements I and B extends A, B should be in the list of |
30 * implementing classes in the documentation for I. |
30 * implementing classes in the documentation for I. |
31 * @author jamieh |
31 * @author jamieh |
81 "<dd><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" + |
81 "<dd><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" + |
82 "</a></dd>" + NL + "</dl>" |
82 "</a></dd>" + NL + "</dl>" |
83 }, |
83 }, |
84 //Make sure "Specified By" has substituted type parameters. |
84 //Make sure "Specified By" has substituted type parameters. |
85 {BUG_ID + FS + "pkg" + FS + "Child.html", |
85 {BUG_ID + FS + "pkg" + FS + "Child.html", |
86 "<dt><span class=\"strong\">Specified by:</span></dt>" + NL + |
86 "<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>" + NL + |
87 "<dd><code><a href=\"../pkg/Interface.html#method--\">method</a>" + |
87 "<dd><code><a href=\"../pkg/Interface.html#method--\">method</a>" + |
88 "</code> in interface <code>" + |
88 "</code> in interface <code>" + |
89 "<a href=\"../pkg/Interface.html\" title=\"interface in pkg\">" + |
89 "<a href=\"../pkg/Interface.html\" title=\"interface in pkg\">" + |
90 "Interface</a><<a href=\"../pkg/Child.html\" title=\"type parameter in Child\">" + |
90 "Interface</a><<a href=\"../pkg/Child.html\" title=\"type parameter in Child\">" + |
91 "T</a>></code></dd>" |
91 "T</a>></code></dd>" |
92 }, |
92 }, |
93 //Make sure "Overrides" has substituted type parameters. |
93 //Make sure "Overrides" has substituted type parameters. |
94 {BUG_ID + FS + "pkg" + FS + "Child.html", |
94 {BUG_ID + FS + "pkg" + FS + "Child.html", |
95 "<dt><span class=\"strong\">Overrides:</span></dt>" + NL + |
95 "<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>" + NL + |
96 "<dd><code><a href=\"../pkg/Parent.html#method--\">method</a>" + |
96 "<dd><code><a href=\"../pkg/Parent.html#method--\">method</a>" + |
97 "</code> in class <code><a href=\"../pkg/Parent.html\" " + |
97 "</code> in class <code><a href=\"../pkg/Parent.html\" " + |
98 "title=\"class in pkg\">Parent</a><<a href=\"../pkg/Child.html\" " + |
98 "title=\"class in pkg\">Parent</a><<a href=\"../pkg/Child.html\" " + |
99 "title=\"type parameter in Child\">T</a>></code></dd>" |
99 "title=\"type parameter in Child\">T</a>></code></dd>" |
100 }, |
100 }, |