On Sun, 18 May 2025 23:44:13 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> This patch suppresses compiler warning C5287 triggered in debugInit.c when 
> building with Visual Studio 2022 version 17.14 (released a few days ago).
> 
> I’m simply disabling the warning to unblock the broken build. This change is 
> intended to be backported to update releases.
> 
> A proper fix (e.g., explicit type cast) may be introduced later if necessary.

Other references to the jvmti version in the debug agent use the result of 
calling GetVersionNumber(), which provides a jint. These references are 
otherwise doing the same bit masking and not seeing this warning. Using the 
compile time JVMTI_VERSION is appropriate for the code in question (it wants 
the compile time version), and simply casting it to a jint should resolve the 
warning.

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

PR Comment: https://git.openjdk.org/jdk/pull/25293#issuecomment-2889473633

Reply via email to