-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8347114: JMXServiceURL should require an explicit protocol #25674
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
8347114: JMXServiceURL should require an explicit protocol #25674
Conversation
|
/csr |
|
👋 Welcome back kevinw! A progress list of the required criteria for merging this PR into |
|
@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: 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 112 new commits pushed to the
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 |
|
@kevinjwalls has indicated that a compatibility and specification (CSR) request is needed for this pull request. @kevinjwalls please create a CSR request for issue JDK-8347114 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
|
@kevinjwalls The following label will be automatically applied to this pull request:
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. |
Webrevs
|
|
(Test was missing from original commit.) |
|
This change introduces a potential compatibility with application that may be using third-party implementations of the JMXMP protocol. I do not believe JMXMP is widely used, but I could be wrong. I agree that defaulting to the "jmxmp" protocol when |
|
Thanks Daniel, yes there is a possibility of flushing out some niche dependencies on the odd behaviour, will go ahead with CSR and release note. |
|
CSR detail added. |
sspitsyn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
Thanks Serguei! |
|
/integrate |
|
Going to push as commit 9652ae9.
Your commit was automatically rebased without conflicts. |
|
@kevinjwalls Pushed as commit 9652ae9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
Release note updated. |
Somehow I do not see a release note associated with this bug. |
|
Yes that's right, the release note text in the subtask. |
Remove the historic oddity that JMXServiceURL defaults to jmxmp if a null protocol is specified.
This has been the case for JMXServiceURL constructors that take individual parameters, but not for JMXServiceURL(String serviceURL), which enforces that there must be a protocol (If empty in the String, it throws: java.net.MalformedURLException: Missing or invalid protocol name: "")
A missing (null) protocol should throw a MalformedURLException for all constructors.
JMXMP was never part of the JDK, but a separate component in the historic JMX Remote reference implementation.
While we are here, remove the last remaining JMXMP references in the source:
These doc references are just examples of Connectors that support generation of client stubs. There is no need for JMXMP to be mentioned here.
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25674/head:pull/25674$ git checkout pull/25674Update a local copy of the PR:
$ git checkout pull/25674$ git pull https://git.openjdk.org/jdk.git pull/25674/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25674View PR using the GUI difftool:
$ git pr show -t 25674Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25674.diff
Using Webrev
Link to Webrev Comment