[jdk11u-dev] RFR: 8357193: [VS 2022 17.14] Warning C5287 in debugInit.c: enum type mismatch during build

Antonio Vieiro duke at openjdk.org
Tue Jun 24 09:41:46 UTC 2025


Backport of [JDK-8357193](https://bugs.openjdk.org/browse/JDK-8357193) to avoid warning `C5287` being treated as an error with Visual Studio 2022/17.14 [1]. This makes it possible to backport [JDK-8358538](https://bugs.openjdk.org/browse/JDK-8358538) and [JDK-8360042](https://bugs.openjdk.org/browse/JDK-8360042).

The backport is not clean because `make/lib/Lib-jdk.jdwp.agent.gmk` in JDK17 has evolved differently.

Builds with `windows-2019` & MSVC Toolset `14.29`  GHA runner. `tier1` tests are ongoing in GHA.

[1]

openjdk\jdk\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184): error C2220: the following warning is treated as an error
\openjdk\jdk\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184): warning C5287: operands are different enum types '<unnamed-enum-JVMTI_VERSION_1>' and '<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>';

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

Commit messages:
 - Backport a4770b5dbc06bc0b1285c6d4487826c96e3d92e1

Changes: https://git.openjdk.org/jdk11u-dev/pull/3053/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3053&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8357193
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/3053.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3053/head:pull/3053

PR: https://git.openjdk.org/jdk11u-dev/pull/3053


More information about the jdk-updates-dev mailing list