[jdk17u-dev] RFR: 8355249: Remove the use of WMIC from the entire source code [v2]
Taizo Kurashige
tkurashige at openjdk.org
Tue Jul 29 07:12:03 UTC 2025
> Hi all,
>
> This is a backport of JDK-8355249 : Remove the use of WMIC from the entire source code
>
> JDK-8355249 is an enhancement, but the future removal of WMIC will affect any version of jdk, so I think it needs to be backported.
>
> Original patch does not apply cleanly because [JDK-8340311](https://bugs.openjdk.org/browse/JDK-8340311) is not backported to jdk17. For this reason, I modified Win8301247Test.java instead of WindowsHelper.java.
> In addition, [JDK-8344275](https://bugs.openjdk.org/browse/JDK-8344275) doesn't apply to 17, and NosuchElementException is only used in 17, so I made a slightly different fix for those as well.
>
> I confirmed that Win8301247Test.java passes on Windows Server 2022.
Taizo Kurashige has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- Merge branch 'openjdk:master' into remove_wmic
- Backport 4458719a108f45d3744d47a6ea081fe9ec3e675e
- Backport 4458719a108f45d3744d47a6ea081fe9ec3e675e
-------------
Changes:
- all: https://git.openjdk.org/jdk17u-dev/pull/3688/files
- new: https://git.openjdk.org/jdk17u-dev/pull/3688/files/4122a9c0..de79559b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3688&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3688&range=00-01
Stats: 17951 lines in 434 files changed: 9796 ins; 5511 del; 2644 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/3688.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3688/head:pull/3688
PR: https://git.openjdk.org/jdk17u-dev/pull/3688
More information about the jdk-updates-dev
mailing list