[jdk21u-dev] RFR: 8370214: [21u] Remove -Xdebug and -Xnoagent from tests: backport parts of 8227229 and 8312072

Matthias Baesken mbaesken at openjdk.org
Mon Oct 20 09:14:07 UTC 2025


On Fri, 17 Oct 2025 13:16:34 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> This is a backport of the test parts of 
> 
> [8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6](https://bugs.openjdk.org/browse/JDK-8227229)
> and
> [8312072: Deprecate for removal the -Xnoagent option](https://bugs.openjdk.org/browse/JDK-8312072)
> 
> I prepared two commits to separate the edits of each of these.
> 
> Backporting these changes makes 
>   [8327704: Update nsk/jdi tests to use driver instead of othervm](https://bugs.openjdk.org/browse/JDK-8327704)
> a clean backport.  As 8327704 is huge, it would be quite unpleasant to review.  See https://github.com/openjdk/jdk21u-dev/pull/2359
> 
> 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.

Makes sense ; but in 21u-dev we have a few more places where those flags show up, e.g.  netbeans-targets.xml .  See  https://github.com/search?q=repo%3Aopenjdk%2Fjdk21u-dev+%22-Xdebug%22&type=code  
should those be kicked out too ?

Even in jdk (jdk26) we still mentioned  '-Xdebug'  in src/hotspot/share/prims/jvmti.xml ; should we better kick it out there (separate JBS issue) ?

-------------

PR Review: https://git.openjdk.org/jdk21u-dev/pull/2353#pullrequestreview-3355619101
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2353#issuecomment-3421168383


More information about the jdk-updates-dev mailing list