author | pmuthuswamy |
Tue, 17 Jul 2018 16:49:55 +0530 | |
changeset 51127 | c2e676c2cf7b |
parent 49139 | 771616d26ca1 |
child 52616 | 1a395165c09b |
permissions | -rw-r--r-- |
10 | 1 |
/* |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
48213
diff
changeset
|
2 |
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
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 |
* |
|
5520 | 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. |
|
10 | 22 |
*/ |
23 |
||
24 |
/* |
|
25 |
* @test |
|
48213
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
26 |
* @bug 4927552 8026567 8071982 8162674 8175200 8175218 8183511 8186332 |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
27 |
* 8169819 8074407 8191030 8182765 |
47846 | 28 |
* @summary test generated docs for deprecated items |
10 | 29 |
* @author jamieh |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
30 |
* @library ../lib |
36526 | 31 |
* @modules jdk.javadoc/jdk.javadoc.internal.tool |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
32 |
* @build JavadocTester |
10 | 33 |
* @run main TestDeprecatedDocs |
34 |
*/ |
|
35 |
||
36 |
public class TestDeprecatedDocs extends JavadocTester { |
|
37 |
||
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
38 |
public static void main(String... args) throws Exception { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
39 |
TestDeprecatedDocs tester = new TestDeprecatedDocs(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
40 |
tester.runTests(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
41 |
} |
10 | 42 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
43 |
@Test |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
44 |
void test() { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
45 |
javadoc("-d", "out", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
46 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
47 |
"pkg"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
48 |
checkExit(Exit.OK); |
10 | 49 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
50 |
checkOutput("deprecated-list.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
51 |
"annotation_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
52 |
"annotation_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
53 |
"annotation_test3 passes", |
36705 | 54 |
"annotation_test4 passes.", |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
55 |
"class_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
56 |
"class_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
57 |
"class_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
58 |
"class_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
59 |
"enum_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
60 |
"enum_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
61 |
"error_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
62 |
"error_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
63 |
"error_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
64 |
"error_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
65 |
"exception_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
66 |
"exception_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
67 |
"exception_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
68 |
"exception_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
69 |
"interface_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
70 |
"interface_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
71 |
"interface_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
72 |
"interface_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
73 |
"pkg.DeprecatedClassByAnnotation", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
74 |
"pkg.DeprecatedClassByAnnotation()", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
75 |
"pkg.DeprecatedClassByAnnotation.method()", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
76 |
"pkg.DeprecatedClassByAnnotation.field" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
77 |
); |
10 | 78 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
79 |
checkOutput("pkg/DeprecatedClassByAnnotation.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
80 |
"<pre>@Deprecated\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
81 |
+ "public class <span class=\"typeNameLabel\">DeprecatedClassByAnnotation</span>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
82 |
+ "extends java.lang.Object</pre>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
83 |
"<pre>@Deprecated(forRemoval=true)\n" |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
84 |
+ "public int field</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
85 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span></div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
86 |
"<pre>@Deprecated(forRemoval=true)\n" |
47284
355349babaf4
8186332: Fix method signature in method summary table
bpatel
parents:
47272
diff
changeset
|
87 |
+ "public DeprecatedClassByAnnotation()</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
88 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span></div>", |
51127
c2e676c2cf7b
8207190: JDK 11 javadoc generates bad code example
pmuthuswamy
parents:
49139
diff
changeset
|
89 |
"<pre class=\"methodSignature\">@Deprecated\n" |
47284
355349babaf4
8186332: Fix method signature in method summary table
bpatel
parents:
47272
diff
changeset
|
90 |
+ "public void method()</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
91 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span></div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
92 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
93 |
checkOutput("pkg/TestAnnotationType.html", true, |
47272 | 94 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
95 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
96 |
+ "@Documented\n" |
47272 | 97 |
+ "public @interface <span class=\"memberNameLabel\">TestAnnotationType</span></pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
98 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
99 |
+ "<div class=\"deprecationComment\">annotation_test1 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
100 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
101 |
"<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
102 |
+ "static final int field</pre>\n" |
47272 | 103 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This " |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
104 |
+ "API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
105 |
+ "<div class=\"deprecationComment\">annotation_test4 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
106 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
107 |
"<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
108 |
+ "int required</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
109 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
110 |
+ "<div class=\"deprecationComment\">annotation_test3 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
111 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
112 |
"<pre>java.lang.String optional</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
113 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
114 |
+ "<div class=\"deprecationComment\">annotation_test2 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
115 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
116 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
117 |
checkOutput("pkg/TestClass.html", true, |
47272 | 118 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
119 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
120 |
+ "public class <span class=\"typeNameLabel\">TestClass</span>\n" |
47272 | 121 |
+ "extends java.lang.Object</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
122 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
123 |
+ "<div class=\"deprecationComment\">class_test1 passes.</div>\n" |
47272 | 124 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
125 |
"<pre>@Deprecated(forRemoval=true)\n" |
47284
355349babaf4
8186332: Fix method signature in method summary table
bpatel
parents:
47272
diff
changeset
|
126 |
+ "public TestClass()</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
127 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
128 |
+ "<div class=\"deprecationComment\">class_test3 passes. This is the second sentence of deprecated description for a constructor.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
129 |
+ "</div>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
130 |
"<td class=\"colLast\">\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
131 |
+ "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
132 |
+ "<div class=\"deprecationComment\">class_test2 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
133 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
134 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
135 |
"<td class=\"colLast\">\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
136 |
+ "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
137 |
+ "<div class=\"deprecationComment\">class_test3 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
138 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
139 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
140 |
"<td class=\"colLast\">\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
141 |
+ "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
142 |
+ "<div class=\"deprecationComment\">class_test4 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
143 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
144 |
+ "</td>"); |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
145 |
|
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
146 |
checkOutput("pkg/TestClass.html", false, |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
147 |
"<div class=\"deprecationComment\">class_test2 passes. This is the second sentence of deprecated description for a field.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
148 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
149 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
150 |
"<div class=\"deprecationComment\">class_test3 passes. This is the second sentence of deprecated description for a constructor.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
151 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
152 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
153 |
"<div class=\"deprecationComment\">class_test4 passes. This is the second sentence of deprecated description for a method.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
154 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
155 |
+ "</td>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
156 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
157 |
checkOutput("pkg/TestEnum.html", true, |
47272 | 158 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
159 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
160 |
+ "public enum <span class=\"typeNameLabel\">TestEnum</span>\n" |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
48213
diff
changeset
|
161 |
+ "extends java.lang.Enum<<a href=\"TestEnum.html\" title=\"enum in pkg\">TestEnum</a>></pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
162 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
163 |
+ "<div class=\"deprecationComment\">enum_test1 passes.</div>\n" |
47272 | 164 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
165 |
"<pre>@Deprecated(forRemoval=true)\n" |
48654
36f58bd6269f
8195796: Reduce the size of relative URLs in generated docs
jjg
parents:
48213
diff
changeset
|
166 |
+ "public static final <a href=\"TestEnum.html\" title=\"enum in pkg\">TestEnum</a> FOR_REMOVAL</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
167 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
168 |
+ "<div class=\"deprecationComment\">enum_test3 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
169 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
170 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
171 |
checkOutput("pkg/TestError.html", true, |
47272 | 172 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
173 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
174 |
+ "public class <span class=\"typeNameLabel\">TestError</span>\n" |
47272 | 175 |
+ "extends java.lang.Error</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
176 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
177 |
+ "<div class=\"deprecationComment\">error_test1 passes.</div>\n" |
47272 | 178 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
179 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
180 |
checkOutput("pkg/TestException.html", true, |
47272 | 181 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
182 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
183 |
+ "public class <span class=\"typeNameLabel\">TestException</span>\n" |
47272 | 184 |
+ "extends java.lang.Exception</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
185 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
186 |
+ "<div class=\"deprecationComment\">exception_test1 passes.</div>\n" |
47272 | 187 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
188 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
189 |
checkOutput("pkg/TestInterface.html", true, |
47272 | 190 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
191 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
192 |
+ "public class <span class=\"typeNameLabel\">TestInterface</span>\n" |
47272 | 193 |
+ "extends java.lang.Object</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
194 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
195 |
+ "<div class=\"deprecationComment\">interface_test1 passes.</div>\n" |
47272 | 196 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
197 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
198 |
checkOutput("deprecated-list.html", true, |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
199 |
"<ul>\n" |
47299 | 200 |
+ "<li><a href=\"#forRemoval\">For Removal</a></li>\n" |
201 |
+ "<li><a href=\"#class\">Classes</a></li>\n" |
|
202 |
+ "<li><a href=\"#enum\">Enums</a></li>\n" |
|
203 |
+ "<li><a href=\"#exception\">Exceptions</a></li>\n" |
|
204 |
+ "<li><a href=\"#error\">Errors</a></li>\n" |
|
205 |
+ "<li><a href=\"#annotation.type\">Annotation Types</a></li>\n" |
|
206 |
+ "<li><a href=\"#field\">Fields</a></li>\n" |
|
207 |
+ "<li><a href=\"#method\">Methods</a></li>\n" |
|
208 |
+ "<li><a href=\"#constructor\">Constructors</a></li>\n" |
|
209 |
+ "<li><a href=\"#enum.constant\">Enum Constants</a></li>\n" |
|
210 |
+ "<li><a href=\"#annotation.type.member\">Annotation Type Elements</a></li>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
211 |
+ "</ul>", |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
212 |
"<a id=\"forRemoval\">", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
213 |
"<table class=\"deprecatedSummary\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
214 |
+ "<caption><span>For Removal</span><span class=\"tabEnd\"> </span></caption>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
215 |
+ "<tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
216 |
+ "<th class=\"colFirst\" scope=\"col\">Element</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
217 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
218 |
+ "</tr>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
219 |
"<table class=\"deprecatedSummary\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
220 |
+ "<caption><span>Enums</span><span class=\"tabEnd\"> </span></caption>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
221 |
+ "<tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
222 |
+ "<th class=\"colFirst\" scope=\"col\">Enum</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
223 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
224 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
225 |
+ "<tbody>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
226 |
+ "<tr class=\"altColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
227 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestEnum.html\" title=\"enum in pkg\">pkg.TestEnum</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
228 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
229 |
+ "<div class=\"deprecationComment\">enum_test1 passes.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
230 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
231 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
232 |
+ "</tbody>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
233 |
+ "</table>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
234 |
"<table class=\"deprecatedSummary\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
235 |
+ "<caption><span>Exceptions</span><span class=\"tabEnd\"> </span></caption>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
236 |
+ "<tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
237 |
+ "<th class=\"colFirst\" scope=\"col\">Exceptions</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
238 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
239 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
240 |
+ "<tbody>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
241 |
+ "<tr class=\"altColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
242 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html\" title=\"class in pkg\">pkg.TestException</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
243 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
244 |
+ "<div class=\"deprecationComment\">exception_test1 passes.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
245 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
246 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
247 |
+ "</tbody>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
248 |
+ "</table>", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
249 |
"<table class=\"deprecatedSummary\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
250 |
+ "<caption><span>Fields</span><span class=\"tabEnd\"> </span></caption>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
251 |
+ "<tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
252 |
+ "<th class=\"colFirst\" scope=\"col\">Field</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
253 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
254 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
255 |
+ "<tbody>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
256 |
+ "<tr class=\"altColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
257 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/DeprecatedClassByAnnotation.html#field\">pkg.DeprecatedClassByAnnotation.field</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
258 |
+ "<td class=\"colLast\"></td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
259 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
260 |
+ "<tr class=\"rowColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
261 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestAnnotationType.html#field\">pkg.TestAnnotationType.field</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
262 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
263 |
+ "<div class=\"deprecationComment\">annotation_test4 passes.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
264 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
265 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
266 |
+ "<tr class=\"altColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
267 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestClass.html#field\">pkg.TestClass.field</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
268 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
269 |
+ "<div class=\"deprecationComment\">class_test2 passes. This is the second sentence of deprecated description for a field.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
270 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
271 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
272 |
+ "<tr class=\"rowColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
273 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestError.html#field\">pkg.TestError.field</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
274 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
275 |
+ "<div class=\"deprecationComment\">error_test2 passes.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
276 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
277 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
278 |
+ "<tr class=\"altColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
279 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html#field\">pkg.TestException.field</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
280 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
281 |
+ "<div class=\"deprecationComment\">exception_test2 passes.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
282 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
283 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
284 |
+ "<tr class=\"rowColor\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
285 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestInterface.html#field\">pkg.TestInterface.field</a></th>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
286 |
+ "<td class=\"colLast\">\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
287 |
+ "<div class=\"deprecationComment\">interface_test2 passes.</div>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
288 |
+ "</td>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
289 |
+ "</tr>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
290 |
+ "</tbody>\n" |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
291 |
+ "</table>"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
292 |
} |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
293 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
294 |
@Test |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
295 |
void test_html4() { |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
296 |
javadoc("-d", "out-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
297 |
"-html4", |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
298 |
"-sourcepath", testSrc, |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
299 |
"pkg"); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
300 |
checkExit(Exit.OK); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
301 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
48654
diff
changeset
|
302 |
checkOutput("deprecated-list.html", true, |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
303 |
"<a name=\"forRemoval\">", |
47299 | 304 |
"<table class=\"deprecatedSummary\" summary=\"For Removal table, listing for removal, and an explanation\">\n" |
305 |
+ "<caption><span>For Removal</span><span class=\"tabEnd\"> </span></caption>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
306 |
+ "<tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
307 |
+ "<th class=\"colFirst\" scope=\"col\">Element</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
308 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
309 |
+ "</tr>", |
47299 | 310 |
"<table class=\"deprecatedSummary\" summary=\"Enums table, listing enums, and an explanation\">\n" |
311 |
+ "<caption><span>Enums</span><span class=\"tabEnd\"> </span></caption>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
312 |
+ "<tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
313 |
+ "<th class=\"colFirst\" scope=\"col\">Enum</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
314 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
315 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
316 |
+ "<tbody>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
317 |
+ "<tr class=\"altColor\">\n" |
47299 | 318 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestEnum.html\" title=\"enum in pkg\">pkg.TestEnum</a></th>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
319 |
+ "<td class=\"colLast\">\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
320 |
+ "<div class=\"deprecationComment\">enum_test1 passes.</div>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
321 |
+ "</td>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
322 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
323 |
+ "</tbody>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
324 |
+ "</table>", |
47299 | 325 |
"<table class=\"deprecatedSummary\" summary=\"Exceptions table, listing exceptions, and an explanation\">\n" |
326 |
+ "<caption><span>Exceptions</span><span class=\"tabEnd\"> </span></caption>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
327 |
+ "<tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
328 |
+ "<th class=\"colFirst\" scope=\"col\">Exceptions</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
329 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
330 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
331 |
+ "<tbody>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
332 |
+ "<tr class=\"altColor\">\n" |
47299 | 333 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html\" title=\"class in pkg\">pkg.TestException</a></th>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
334 |
+ "<td class=\"colLast\">\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
335 |
+ "<div class=\"deprecationComment\">exception_test1 passes.</div>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
336 |
+ "</td>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
337 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
338 |
+ "</tbody>\n" |
47299 | 339 |
+ "</table>", |
340 |
"<table class=\"deprecatedSummary\" summary=\"Fields table, listing fields, and an explanation\">\n" |
|
341 |
+ "<caption><span>Fields</span><span class=\"tabEnd\"> </span></caption>\n" |
|
342 |
+ "<tr>\n" |
|
343 |
+ "<th class=\"colFirst\" scope=\"col\">Field</th>\n" |
|
344 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
|
345 |
+ "</tr>\n" |
|
346 |
+ "<tbody>\n" |
|
347 |
+ "<tr class=\"altColor\">\n" |
|
348 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/DeprecatedClassByAnnotation.html#field\">pkg.DeprecatedClassByAnnotation.field</a></th>\n" |
|
47846 | 349 |
+ "<td class=\"colLast\"></td>\n" |
47299 | 350 |
+ "</tr>\n" |
351 |
+ "<tr class=\"rowColor\">\n" |
|
48213
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
352 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestAnnotationType.html#field\">pkg.TestAnnotationType.field</a></th>\n" |
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
353 |
+ "<td class=\"colLast\">\n" |
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
354 |
+ "<div class=\"deprecationComment\">annotation_test4 passes.</div>\n" |
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
355 |
+ "</td>\n" |
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
356 |
+ "</tr>\n" |
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
357 |
+ "<tr class=\"altColor\">\n" |
47299 | 358 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestClass.html#field\">pkg.TestClass.field</a></th>\n" |
359 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
360 |
+ "<div class=\"deprecationComment\">class_test2 passes. This is the second sentence of deprecated description for a field.</div>\n" |
47299 | 361 |
+ "</td>\n" |
362 |
+ "</tr>\n" |
|
48213
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
363 |
+ "<tr class=\"rowColor\">\n" |
47299 | 364 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestError.html#field\">pkg.TestError.field</a></th>\n" |
365 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
366 |
+ "<div class=\"deprecationComment\">error_test2 passes.</div>\n" |
47299 | 367 |
+ "</td>\n" |
368 |
+ "</tr>\n" |
|
48213
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
369 |
+ "<tr class=\"altColor\">\n" |
47299 | 370 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html#field\">pkg.TestException.field</a></th>\n" |
371 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
372 |
+ "<div class=\"deprecationComment\">exception_test2 passes.</div>\n" |
47299 | 373 |
+ "</td>\n" |
374 |
+ "</tr>\n" |
|
48213
59696a3595bd
8191030: @value Tags are not resolved by javadoc 9.
ksrini
parents:
47846
diff
changeset
|
375 |
+ "<tr class=\"rowColor\">\n" |
47299 | 376 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestInterface.html#field\">pkg.TestInterface.field</a></th>\n" |
377 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
378 |
+ "<div class=\"deprecationComment\">interface_test2 passes.</div>\n" |
47299 | 379 |
+ "</td>\n" |
380 |
+ "</tr>\n" |
|
381 |
+ "</tbody>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
382 |
+ "</table>"); |
10 | 383 |
} |
384 |
} |