JDK-8370214 : [21u] Remove -Xdebug and -Xnoagent from tests: backport parts of 8227229 and 8312072
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 21.0.10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-10-20
  • Updated: 2025-10-24
  • Resolved: 2025-10-24
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 21
21.0.10 masterFixed
Related Reports
Relates :  
Relates :  
Description
This is a backport of the test parts of

JDK-8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6
and
JDK-8312072: Deprecate for removal the -Xnoagent option

Backporting these changes makes
JDK-8327704: Update nsk/jdi tests to use driver instead of othervm
a clean backport. As 8327704 is huge, it would be quite unpleasant to review.

Removing the usage of the options in 21 is fine as the effect of these options has been removed before 21.

I do not and can not backport the deprecation part of the change.
Comments
Changeset: daa8b72a Branch: master Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2025-10-24 12:48:47 +0000 URL: https://git.openjdk.org/jdk21u-dev/commit/daa8b72a1089cde51bc9e8039b048a8e3a60e4d6
24-10-2025

Fix request [21u] I backport this nice cleanup to simplify later backports. No risk, only a test change Assembled from two changes, reviewed. Tests pass. SAP nightly testing passed.
20-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/2353 Date: 2025-10-17 13:16:34 +0000
20-10-2025