Skip to content

Fix Win32 build failure in MethodHandleNatives - #23910

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
babsingh:main14
May 14, 2026
Merged

Fix Win32 build failure in MethodHandleNatives#23910
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
babsingh:main14

Conversation

@babsingh

Copy link
Copy Markdown
Contributor

Use UDATA for field offsets when resolving MemberName fields.

The getJNIFieldID helper expects a UDATA offset and a UDATA*
inconsistentData out parameter. Using U_64 for the offset caused a
narrowing conversion warning on Win32, which is treated as an error.

Fixes: #23905

@babsingh

Copy link
Copy Markdown
Contributor Author

fyi @pshipton

Comment thread runtime/jcl/common/java_lang_invoke_MethodHandleNatives.cpp Outdated
Comment thread runtime/jcl/common/java_lang_invoke_MethodHandleNatives.cpp Outdated
Comment thread runtime/jcl/common/java_lang_invoke_MethodHandleNatives.cpp Outdated
Use UDATA for field offsets when resolving MemberName fields.

The getJNIFieldID helper expects a UDATA offset and a UDATA*
inconsistentData out parameter. Using U_64 for the offset caused a
narrowing conversion warning on Win32, which is treated as an error.

Fixes: eclipse-openj9#23905

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh

Copy link
Copy Markdown
Contributor Author

@keithc-ca All feedback has been addressed.

@keithc-ca

Copy link
Copy Markdown
Contributor

Jenkins compile win32 jdk8

@keithc-ca
keithc-ca merged commit d17aa62 into eclipse-openj9:master May 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows 32-bit fails to compile

2 participants