-
Bug
-
Resolution: Duplicate
-
P4
-
8, 9
-
None
Consider the following class NestedEnum.java:
public class NestedEnum {
public enum Mode { A, B }
}
Run the command
javadoc -private NestedEnum.java
The generated file index-all.html contains this snippet:
<dt><span class="memberNameLink"><a href="NestedEnum.Mode.html#Mode--">Mode()</a></span> - Constructor for enum <a href="NestedEnum.Mode.html" title="enum in <Unnamed>">NestedEnum.Mode</a></dt>
The link "NestedEnum.Mode.html#Mode--" is broken. Generated file NestedEnum.Mode.html does not contain documentation for the NestedEnum.Mode constructor, and it has no "#Mode--" URL fragment.
The correct behavior is that index-all should not contain text and links about constructors that do not appear in the generated HTML documentation.
public class NestedEnum {
public enum Mode { A, B }
}
Run the command
javadoc -private NestedEnum.java
The generated file index-all.html contains this snippet:
<dt><span class="memberNameLink"><a href="NestedEnum.Mode.html#Mode--">Mode()</a></span> - Constructor for enum <a href="NestedEnum.Mode.html" title="enum in <Unnamed>">NestedEnum.Mode</a></dt>
The link "NestedEnum.Mode.html#Mode--" is broken. Generated file NestedEnum.Mode.html does not contain documentation for the NestedEnum.Mode constructor, and it has no "#Mode--" URL fragment.
The correct behavior is that index-all should not contain text and links about constructors that do not appear in the generated HTML documentation.
- duplicates
-
JDK-8166113 javadoc -private creates broken links to enum constructors
-
- Open
-