On Tue, 12 Oct 2021 12:33:34 GMT, Hannes Wallnöfer <[email protected]> wrote:
> This is a simple fix to include the unnamed package when javadoc generates
> documentation for both unnamed and named packages. As elsewhere in javadoc,
> the package is listed as "Unnamed Package" (subject to localization).
>
> Also, when documenting only code in the unnamed package, the index.html page
> redirects to the overview page of the unnamed package instead of the first
> documented class, which is generally more adequate for an overview page.
One new file needs a final newline.
test/langtools/jdk/javadoc/doclet/testUnnamedPackage/src1/pkg/D.java line 29:
> 27: * This is class D in the package pkg.
> 28: */
> 29: public class D {}
add newline
test/langtools/jdk/javadoc/doclet/testUnnamedPackage/src1/pkg/package.html line
5:
> 3: This is a package comment for package pkg.
> 4: </body>
> 5: </html>
Old-style? How quaint!
-------------
Marked as reviewed by jjg (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/5911