Skip to content

Conversation

@jcflack
Copy link
Contributor

@jcflack jcflack commented Mar 6, 2025

While PL/Java's docs are meant to build (mvn site site:stage) without failure on any Java version supported for building PL/Java, there have been changes over the Javadoc versions to things like the output directory structure and the spelling of anchor names for use as URL fragment IDs. Therefore, it's necessary to pick a version of Javadoc to be used when generating the docs if such things as links from the Markdown documents into the generated javadocs are to work right.

Links from the generated javadocs to Oracle's published JDK javadocs are made to the Java 12 pages as a practical compromise: PL/Java 1.6.x is built for compatibility back to Java 9, but Oracle's published pages for Java 12 are the earliest to have the organization expected for a modern Javadoc tool to link into them.

The PL/Java examples (non-modular code) have Javadoc links back to the PL/Java API (modular code), which Javadoc before 15 doesn't know how to do. Later Javadoc versions have some further aesthetic improvements.

For now, assume that Javadoc 21 (the recent LTS version) will be the version used for generating the site javadocs, and adjust the URLs that point into the javadocs accordingly.

jcflack added 2 commits March 5, 2025 13:46
While PL/Java's docs are meant to build (mvn site site:stage) without
failure on any Java version supported for building PL/Java, there have
been changes over the Javadoc versions to things like the output directory
structure and the spelling of anchor names for use as URL fragment IDs.
Therefore, it's necessary to pick a version of Javadoc to be used when
generating the docs if such things as links from the Markdown documents
into the generated javadocs are to work right.

Links from the generated javadocs to Oracle's published JDK javadocs
are made to the Java 12 pages as a practical compromise: PL/Java 1.6.x
is built for compatibility back to Java 9, but Oracle's published pages
for Java 12 are the earliest to have the organization expected by a modern
Javadoc.

The PL/Java examples (non-modular code) have Javadoc links back to the
PL/Java API (modular code), which Javadoc before 15 doesn't know how
to do. Later Javadoc versions have some further aesthetic improvements.

For now, assume that Javadoc 21 (the recent LTS version) will be used
for generating the site javadocs, and adjust the URLs that point
into the javadocs accordingly.
A slightly Orwellian feeling is probably no important reason not to also
fix links in releasenotes-pre1_6 so they aren't broken when the docs are
built with a present-day javadoc.

There will still be unavoidable breakage given that anchor names for
functions are generated by recent Javadoc versions to include parentheses,
which are sanitized out of links by Velocity's Markdown processor.
@jcflack jcflack merged commit 194a0f8 into REL1_6_STABLE Mar 8, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants