Skip to content

Conversation

@dansmithcode
Copy link

@dansmithcode dansmithcode commented Nov 8, 2025

Updated the JSpec taglets to use relative links into ../specs/jls and ../specs/jvms rather than external links, possible now due to JDK-8370153.

I was surprised there doesn't seem to be a standard way to get a relative path to the docs root, but I copy/pasted from ToolGuide, and made some tweaks based on failures I saw.

Tested with 'make docs' and manually confirmed that a handful of different @jls and @jvms tags are pointing to the right place.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8370154: Update @jls and @jvms taglets to point to local specs dir (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28207/head:pull/28207
$ git checkout pull/28207

Update a local copy of the PR:
$ git checkout pull/28207
$ git pull https://git.openjdk.org/jdk.git pull/28207/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28207

View PR using the GUI difftool:
$ git pr show -t 28207

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28207.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 8, 2025

👋 Welcome back dlsmith! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 8, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added javadoc javadoc-dev@openjdk.org build build-dev@openjdk.org labels Nov 8, 2025
@openjdk
Copy link

openjdk bot commented Nov 8, 2025

@dansmithcode The following labels will be automatically applied to this pull request:

  • build
  • javadoc

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 8, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 8, 2025

Webrevs

@liach
Copy link
Member

liach commented Nov 8, 2025

Looks goood. Meanwhile, do you think we should retain external link support via a system property? For the Java SE API specification only distribution for JCP, we might want to link to a static link instead of a local relative link. (I think as long as we can link, a relative link like here is better because it will be stable in the specdiff for JCP review, avoiding spams)

Since we removed the system property jspec.version, we should be able to remove this from the build files too:

-Djspec.version=$$(VERSION_SPECIFICATION)

@dansmithcode
Copy link
Author

JCP reviews actually happen before GA, so I think the external links are always dead anyway?

If it's something the JCP folks care about, I think the right solution is to include JLS & JVMS in the SE-only docs. (They are, after all, specs for Java SE.) But for now, I think the business as usual process is fine.

@dansmithcode
Copy link
Author

I'll confirm there are no more uses of jspec.version and update Docs.gmk.

@liach
Copy link
Member

liach commented Nov 8, 2025

I think we can go ahead with this once we verify Oracle's doc build passes. I will approve once the system property passing in Docs.gmk is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build build-dev@openjdk.org javadoc javadoc-dev@openjdk.org rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants