Skip to content

Commit ac2fede

Browse files
committed
8344041: Re-enable external specs page
Reviewed-by: erikj, nbenalla, liach
1 parent 1c4c653 commit ac2fede

File tree

4 files changed

+5
-47
lines changed

4 files changed

+5
-47
lines changed

make/Docs.gmk

+2-4
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,13 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
107107
JAVADOC_OPTIONS := -use -keywords -notimestamp \
108108
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
109109
-splitIndex --system none -javafx --expand-requires transitive \
110-
--override-methods=summary \
111-
--no-external-specs-page
110+
--override-methods=summary
112111

113112
# The reference options must stay stable to allow for comparisons across the
114113
# development cycle.
115114
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
116115
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
117-
-html5 -javafx --expand-requires transitive \
118-
--no-external-specs-page
116+
-html5 -javafx --expand-requires transitive
119117

120118
# Should we add DRAFT stamps to the generated javadoc?
121119
ifeq ($(VERSION_IS_GA), true)

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,7 @@ protected void generateOtherFiles(ClassTree classTree)
280280
}
281281

282282
if (options.createIndex()) {
283-
if (!options.noExternalSpecsPage()){
284-
writerFactory.newExternalSpecsWriter().buildPage();
285-
}
283+
writerFactory.newExternalSpecsWriter().buildPage();
286284
writerFactory.newSearchTagsWriter().buildPage();
287285
writerFactory.newSystemPropertiesWriter().buildPage();
288286

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlOptions.java

+1-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -144,13 +144,6 @@ public class HtmlOptions extends BaseOptions {
144144
*/
145145
private boolean noDeprecatedList = false;
146146

147-
/**
148-
* Argument for command-line option {@code --no-external-spec-page}.
149-
* True if command-line option "--no-external-spec-page" is used. Default value is
150-
* false.
151-
*/
152-
private boolean noExternalSpecsPage = false;
153-
154147
/**
155148
* Argument for command-line option {@code -nohelp}.
156149
* True if command-line option "-nohelp" is used. Default value is false.
@@ -374,14 +367,6 @@ public boolean process(String opt, List<String> args) {
374367
}
375368
},
376369

377-
new Hidden(resources, "--no-external-specs-page") {
378-
@Override
379-
public boolean process(String opt, List<String> args) {
380-
noExternalSpecsPage = true;
381-
return true;
382-
}
383-
},
384-
385370
new Option(resources, "-notree") {
386371
@Override
387372
public boolean process(String opt, List<String> args) {
@@ -749,15 +734,6 @@ public boolean noDeprecatedList() {
749734
return noDeprecatedList;
750735
}
751736

752-
/**
753-
* Argument for command-line option {@code --no-external-specs-page}.
754-
* True if command-line option "--no-external-specs-page" is used. Default value is
755-
* false.
756-
*/
757-
public boolean noExternalSpecsPage() {
758-
return noExternalSpecsPage;
759-
}
760-
761737
/**
762738
* Argument for command-line option {@code -nohelp}.
763739
* True if command-line option "-nohelp" is used. Default value is false.

test/langtools/jdk/javadoc/doclet/testSpecTag/TestSpecTag.java

+1-15
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @bug 6251738 8226279 8297802 8296546 8305407
26+
* @bug 6251738 8226279 8297802 8305407
2727
* @summary JDK-8226279 javadoc should support a new at-spec tag
2828
* @library /tools/lib ../../lib
2929
* @modules jdk.javadoc/jdk.javadoc.internal.tool
@@ -511,20 +511,6 @@ public void m2() { }
511511
.replace("#FILE#", src.resolve("p").resolve("C.java").toString()));
512512
}
513513

514-
@Test
515-
public void testSuppressSpecPage(Path base) throws IOException {
516-
Path src = base.resolve("src");
517-
tb.writeJavaFiles(src, "package p; /** @spec http://example.com label */ public class C { }");
518-
519-
javadoc("-d", base.resolve("out").toString(),
520-
"--source-path", src.toString(),
521-
"--no-external-specs-page",
522-
"p");
523-
checkExit(Exit.OK);
524-
525-
checkFiles(false, "external-specs.html");
526-
}
527-
528514
@Test
529515
public void testCombo(Path base) throws IOException {
530516
for (LinkKind lk : LinkKind.values()) {

0 commit comments

Comments
 (0)