8248417: some jdk/javadoc/doclet tests fail (JDK 16)
Reviewed-by: prappo
This commit is contained in:
parent
78b9de8e40
commit
579ed70629
@ -294,8 +294,9 @@ public class Head extends Content {
|
|||||||
|
|
||||||
private Comment getGeneratedBy(boolean timestamp, Date now) {
|
private Comment getGeneratedBy(boolean timestamp, Date now) {
|
||||||
String text = "Generated by javadoc"; // marker string, deliberately not localized
|
String text = "Generated by javadoc"; // marker string, deliberately not localized
|
||||||
|
text += " (" + docletVersion.feature() + ")";
|
||||||
if (timestamp) {
|
if (timestamp) {
|
||||||
text += " ("+ docletVersion.feature() + ") on " + now;
|
text += " on " + now;
|
||||||
}
|
}
|
||||||
return new Comment(text);
|
return new Comment(text);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
#
|
||||||
# javadoc
|
# javadoc
|
||||||
jdk/javadoc/doclet/testHeadTag/TestHeadTag.java 8248417 generic-all
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
#
|
||||||
|
@ -80,8 +80,8 @@ public class TestGeneratedBy extends JavadocTester {
|
|||||||
|
|
||||||
void checkTimestamps(boolean timestamp, String... files) {
|
void checkTimestamps(boolean timestamp, String... files) {
|
||||||
String version = System.getProperty("java.specification.version");
|
String version = System.getProperty("java.specification.version");
|
||||||
String genBy = "Generated by javadoc";
|
String genBy = "Generated by javadoc (" + version + ")";
|
||||||
if (timestamp) genBy += " (" + version + ") on ";
|
if (timestamp) genBy += " on ";
|
||||||
|
|
||||||
for (String file: files) {
|
for (String file: files) {
|
||||||
// genBy is the current standard "Generated by" text
|
// genBy is the current standard "Generated by" text
|
||||||
|
@ -44,7 +44,7 @@ import javadoc.tester.JavadocTester;
|
|||||||
public class TestHeadTag extends JavadocTester {
|
public class TestHeadTag extends JavadocTester {
|
||||||
|
|
||||||
final ToolBox tb;
|
final ToolBox tb;
|
||||||
final String version = System.getProperty("java.version");
|
final String version = System.getProperty("java.specification.version");
|
||||||
|
|
||||||
public static void main(String... args) throws Exception {
|
public static void main(String... args) throws Exception {
|
||||||
TestHeadTag tester = new TestHeadTag();
|
TestHeadTag tester = new TestHeadTag();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user