Skip to content

8358701: Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP #25670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

kevinjwalls
Copy link
Contributor

@kevinjwalls kevinjwalls commented Jun 6, 2025

Doc-only cleanup, not part of the API/spec.

Remove link to the very old reference implementation of JMXMP in the Javadoc. This may misleadingly imply it is a supported part of the JDK.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change requires CSR request JDK-8358759 to be approved
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issues

  • JDK-8358701: Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP (Enhancement - P3)
  • JDK-8358759: Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP (CSR)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 25670

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 6, 2025

👋 Welcome back kevinw! 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 Jun 6, 2025

@kevinjwalls This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8358701: Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP

Reviewed-by: alanb, sspitsyn

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 75 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Jun 6, 2025

@kevinjwalls The following label will be automatically applied to this pull request:

  • serviceability

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

@kevinjwalls
Copy link
Contributor Author

kevinjwalls commented Jun 6, 2025

@kevinjwalls kevinjwalls marked this pull request as ready for review June 6, 2025 08:03
@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 6, 2025
@mlbridge
Copy link

mlbridge bot commented Jun 6, 2025

Webrevs

@AlanBateman
Copy link
Contributor

/csr

@openjdk openjdk bot added the csr Pull request needs approved CSR before integration label Jun 6, 2025
@openjdk
Copy link

openjdk bot commented Jun 6, 2025

@AlanBateman has indicated that a compatibility and specification (CSR) request is needed for this pull request.

@kevinjwalls please create a CSR request for issue JDK-8358701 with the correct fix version. This pull request cannot be integrated until the CSR request is approved.

* <a href="https://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html">
* Reference Implementation</a></em>.</p>
*
* </ul>
Copy link
Member

@dfuch dfuch Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should keep the first part of the note - without the link. Something like:

 *
 *       <p><u>Note</u>: The historical JMX Remote API specification
 *         also defined an optional part; optional packages implementing
 *         the optional part of the <em>JMX Remote API</em>
 *         are not part of the <em>Java SE Platform</em>.</p>
 *

@AlanBateman do you think that would be helpful to keep?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would you think about dropping the sentence "The JMX Remote API allows the use of different type of connectors" and drop "User-defined" from the last list item? Doing that makes it much easier to say that the RMI Connector is standard and that other Connectors are possible using using the JMXConnectorFactory. It removes any discussion as to whether there are two or three "difference types".

I think we want "RMI Connector" to link to either RMIConnector or to the java.management.rmi module description.

My concern with having a historical note is that it invites readers to search for these other "interesting" optional parts, and they will be disappointed. If you do have a historical note then I think it need to say more than "are not part of the Java Platform", it will also need to say that they are not included in the JDK.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK - let's drop the historical note then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would you think about dropping the sentence "The JMX Remote API allows the use of different type of connectors" and drop "User-defined" from the last list item

Yes that's fine. As is "User-defined connector protocols..." -> "Other connector protocols..."

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As is "User-defined connector protocols..." -> "Other connector protocols..."

I think that would be okay.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also removing:
" and, optionally, the Generic Connector (not part of this bundle, see note below)."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinjwalls
Copy link
Contributor Author

kevinjwalls commented Jun 6, 2025

While updating, I now see this as problematic:
"The specification of this functionality is completed by Part III of the JMX Specification, version 1.4"
..as it implies these docs are extended by the historical jmx remote spec.

Updating:

image

@kevinjwalls kevinjwalls changed the title 8358701: Java API docs for javax.management.remote should not link to JMXMP Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP Jun 6, 2025
@openjdk openjdk bot removed the rfr Pull request is ready for review label Jun 6, 2025
@kevinjwalls kevinjwalls changed the title Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP 8358701: Remove misleading javax.management.remote API doc wording about JMX spec, and historic link to JMXMP Jun 6, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 6, 2025
Copy link
Contributor

@AlanBateman AlanBateman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@kevinjwalls
Copy link
Contributor Author

Thanks Daniel and Alan - I have created the CSR.

Copy link
Contributor

@sspitsyn sspitsyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed csr Pull request needs approved CSR before integration labels Jun 12, 2025
@kevinjwalls
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Jun 12, 2025

Going to push as commit 66535fe.
Since your change was applied there have been 76 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jun 12, 2025
@openjdk openjdk bot closed this Jun 12, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jun 12, 2025
@openjdk
Copy link

openjdk bot commented Jun 12, 2025

@kevinjwalls Pushed as commit 66535fe.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@kevinjwalls
Copy link
Contributor Author

/backport :jdk25

@openjdk
Copy link

openjdk bot commented Jun 13, 2025

@kevinjwalls the backport was successfully created on the branch backport-kevinjwalls-66535fe2-jdk25 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk25, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 66535fe2 from the openjdk/jdk repository.

The commit being backported was authored by Kevin Walls on 12 Jun 2025 and was reviewed by Alan Bateman and Serguei Spitsyn.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk:

$ git fetch https://github.com/openjdk-bots/jdk.git backport-kevinjwalls-66535fe2-jdk25:backport-kevinjwalls-66535fe2-jdk25
$ git checkout backport-kevinjwalls-66535fe2-jdk25
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk.git backport-kevinjwalls-66535fe2-jdk25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated serviceability [email protected]
Development

Successfully merging this pull request may close these issues.

4 participants