JDK-8312072 : Deprecate for removal the -Xnoagent option
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-14
  • Updated: 2025-10-20
  • Resolved: 2023-07-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b07Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Sub Tasks
JDK-8313866 :  
Description
java command currently allows -Xnoagent to be passed. This option has been ignored for many releases and doesn't provide any functionality. 

This option should be marked as deprecated for removal. A warning log will be printed noting this deprecation.

In a future release the option should be removed and the java launcher will fail with an error if this option is passed.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/14882 Date: 2023-07-14 07:34:03 +0000
08-11-2024

Changeset: 8ec136e6 Author: Jaikiran Pai <jpai@openjdk.org> Date: 2023-07-18 05:41:37 +0000 URL: https://git.openjdk.org/jdk/commit/8ec136e6f0fa684255274181d09c86251ef5428f
18-07-2023

I've now created https://bugs.openjdk.org/browse/JDK-8312150 for the actual removal.
17-07-2023

[~jpai] please also file the enhancement request to actually do the removal in JDK 23. Thanks.
17-07-2023