[jdk17u-dev] RFR: 8355249: Remove the use of WMIC from the entire source code
Taizo Kurashige
tkurashige at openjdk.org
Tue Jul 29 10:03:15 UTC 2025
On Tue, 29 Jul 2025 07:03:09 GMT, Christoph Langer <clanger at openjdk.org> wrote:
>> 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.
>
> Please enable Github Actions and let them run for a basic verification. Thanks.
@RealCLanger
My apologies for forgetting to enable GHA.
I've enabled and run it.
There are 2 errors in linux-cross-compile. These errors are related to download issues and are not related to this PR.
Thanks.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/3688#issuecomment-3131671731
More information about the jdk-updates-dev
mailing list