RFR: 8374168: Resolve disabled warnings in JDWP agent [v3]

Chris Plummer cjplummer at openjdk.org
Tue Dec 23 02:02:54 UTC 2025


On Tue, 23 Dec 2025 01:33:31 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>> The fix resolves disabled warnings in debugger agent
>
> Alex Menkov has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - copyright
>  - renamed define args
>  - fixed windows GHA build

src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c line 189:

> 187:                                         >> (int)JVMTI_VERSION_SHIFT_MINOR;
> 188:     jvmtiCompileTimeMicroVersion  = ((int)JVMTI_VERSION & (int)JVMTI_VERSION_MASK_MICRO)
> 189:                                         >> (int)JVMTI_VERSION_SHIFT_MICRO;

Can you explain the need for this. These types are all naturally jints, so I'm not sure why you would need to cast them here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28937#discussion_r2641704037


More information about the serviceability-dev mailing list