-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8312150: Remove -Xnoagent option #17032
Conversation
/csr needed |
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
@jaikiran has indicated that a compatibility and specification (CSR) request is needed for this pull request. @jaikiran please create a CSR request for issue JDK-8312150 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
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.
Changes look good.
I don't think a CSR request is necessary for the actual removal, given it was approved to be removed at some point after deprecation. With hotspot flags we cover deprecation, obsoletion and removal with a single CSR request at deprecation time.
Thanks
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.
This option has been useless for 20+ years but wouldn't surprise me if there are still scripts using it. I see you have the release-note=yes label as a reminder to add a release note, good.
/csr unneeded |
@jaikiran 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 50 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 |
Thank you David and Alan for the reviews. I've removed the CSR label from this PR based on David's input (I checked with Joe too).
Right - we have had several projects where this has been either copy/pasted or auto-generated in build.xml files. The EA release for 23, along with the release note, should help projects remove this usage. I will go ahead and integrate this later in the day today. |
/integrate |
Going to push as commit d2ba3b1.
Your commit was automatically rebased without conflicts. |
Can I please get a review of this change which proposes to remove the
-Xnoagent
option of thejava
command? This addresses https://bugs.openjdk.org/browse/JDK-8312150.In Java 22, we already deprecated this option for removal through https://bugs.openjdk.org/browse/JDK-8312073. As noted in that CSR, this option has been a no-op for several releases now and has been ignored by the
java
command. The option isn't part of any documented options either. In Java 22, the usage of this option will print a warning.In Java 23 and above, with the current proposed change in this PR, the usage of this option will no longer be supported and it will start throwing an error just like any other unsupported option:
Having looked at some available data at hand, there are projects/builds which have been using this option (mostly due to copy/paste) and they will be impacted by this. So it will be good to do this change early during the 23 release cycle to allow the impacted projects to notice this change and update their launch scripts accordingly.
tier1, tier2 and tier3 tests continue to pass with this change. I'll create a CSR shortly.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17032/head:pull/17032
$ git checkout pull/17032
Update a local copy of the PR:
$ git checkout pull/17032
$ git pull https://git.openjdk.org/jdk.git pull/17032/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17032
View PR using the GUI difftool:
$ git pr show -t 17032
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17032.diff
Webrev
Link to Webrev Comment