equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4682448 4947464 5029946 8025633 8026567 8035473 8139101 |
26 * @bug 4682448 4947464 5029946 8025633 8026567 8035473 8139101 8175200 |
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 |
62 "-sourcepath", testSrc, |
62 "-sourcepath", testSrc, |
63 "pkg"); |
63 "pkg"); |
64 checkExit(Exit.OK); |
64 checkExit(Exit.OK); |
65 |
65 |
66 checkOutput("pkg/Interface.html", true, |
66 checkOutput("pkg/Interface.html", true, |
67 "<pre>int method()</pre>", |
67 "<pre>int method​()</pre>", |
68 "<pre>static final int field</pre>", |
68 "<pre>static final int field</pre>", |
69 // Make sure known implementing class list is correct and omits type parameters. |
69 // Make sure known implementing class list is correct and omits type parameters. |
70 "<dl>\n" |
70 "<dl>\n" |
71 + "<dt>All Known Implementing Classes:</dt>\n" |
71 + "<dt>All Known Implementing Classes:</dt>\n" |
72 + "<dd><code><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" |
72 + "<dd><code><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" |
117 + "<dd><code><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" |
117 + "<dd><code><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" |
118 + "</a></code></dd>\n" |
118 + "</a></code></dd>\n" |
119 + "</dl>"); |
119 + "</dl>"); |
120 |
120 |
121 checkOutput("pkg/Interface.html", false, |
121 checkOutput("pkg/Interface.html", false, |
122 "public int method()", |
122 "public int method​()", |
123 "public static final int field"); |
123 "public static final int field"); |
124 |
124 |
125 checkOutput("pkg/ClassWithStaticMethod.html", false, |
125 checkOutput("pkg/ClassWithStaticMethod.html", false, |
126 //Make sure "Specified By" does not appear on class documentation when |
126 //Make sure "Specified By" does not appear on class documentation when |
127 //the method is a static method in the interface. |
127 //the method is a static method in the interface. |