8248417: some jdk/javadoc/doclet tests fail (JDK 16)

Reviewed-by: prappo
This commit is contained in:
Jonathan Gibbons 2020-07-02 11:06:16 -07:00
parent 78b9de8e40
commit 579ed70629
4 changed files with 5 additions and 5 deletions

View File

@ -294,8 +294,9 @@ public class Head extends Content {
private Comment getGeneratedBy(boolean timestamp, Date now) {
String text = "Generated by javadoc"; // marker string, deliberately not localized
text += " (" + docletVersion.feature() + ")";
if (timestamp) {
text += " ("+ docletVersion.feature() + ") on " + now;
text += " on " + now;
}
return new Comment(text);
}

View File

@ -26,7 +26,6 @@
###########################################################################
#
# javadoc
jdk/javadoc/doclet/testHeadTag/TestHeadTag.java 8248417 generic-all
###########################################################################
#

View File

@ -80,8 +80,8 @@ public class TestGeneratedBy extends JavadocTester {
void checkTimestamps(boolean timestamp, String... files) {
String version = System.getProperty("java.specification.version");
String genBy = "Generated by javadoc";
if (timestamp) genBy += " (" + version + ") on ";
String genBy = "Generated by javadoc (" + version + ")";
if (timestamp) genBy += " on ";
for (String file: files) {
// genBy is the current standard "Generated by" text

View File

@ -44,7 +44,7 @@ import javadoc.tester.JavadocTester;
public class TestHeadTag extends JavadocTester {
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 {
TestHeadTag tester = new TestHeadTag();