Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8248417: some jdk/javadoc/doclet tests fail (JDK 16)
Reviewed-by: prappo
  • Loading branch information
jonathan-gibbons committed Jul 2, 2020
1 parent 78b9de8 commit 579ed706298be8339faf33e768f84c9b3795cf1a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
@@ -294,8 +294,9 @@ private Content toContent() {

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);
}
@@ -26,7 +26,6 @@
###########################################################################
#
# javadoc
jdk/javadoc/doclet/testHeadTag/TestHeadTag.java 8248417 generic-all

###########################################################################
#
@@ -80,8 +80,8 @@ void checkTimestamps(boolean timestamp) {

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
@@ -44,7 +44,7 @@
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();

0 comments on commit 579ed70

Please sign in to comment.