Skip to content

jdk26+ reset the defineClass ByteBuffer position to match OpenJDK - #22882

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:defineclbb
Nov 4, 2025
Merged

jdk26+ reset the defineClass ByteBuffer position to match OpenJDK#22882
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:defineclbb

Conversation

@pshipton

@pshipton pshipton commented Nov 3, 2025

Copy link
Copy Markdown
Member

@pshipton
pshipton requested a review from keithc-ca November 4, 2025 19:28
@@ -2466,6 +2466,12 @@ protected final Class<?> defineClass(String name, java.nio.ByteBuffer buffer, Pr

byte[] bytes = new byte[size];
buffer.get(bytes);
/*[IF JAVA_SPEC_VERSION >= 26] */
// Match OpenJDK behavior, see https://bugs.openjdk.org/browse/JDK-8352583

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please finish the comment with a period.

Comment thread jcl/src/java.base/share/classes/java/lang/ClassLoader.java
Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@keithc-ca
keithc-ca merged commit 9450813 into eclipse-openj9:master Nov 4, 2025
2 checks passed
pshipton added a commit to pshipton/openjdk-tests that referenced this pull request Nov 5, 2025
Issue eclipse-openj9/openj9#22861
Fixed via eclipse-openj9/openj9#22882

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
llxia pushed a commit to adoptium/aqa-tests that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants