Add Java 26 to Gradle workflow matrix#3984
Open
duanemay wants to merge 3 commits into
Open
Conversation
otherwise this is not adding anything to the already run hsqldb tests
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions Gradle workflow to run the UAA standalone unit-test job on both Java 25 and Java 26, increasing CI coverage across the supported JDK baseline and the next JDK release.
Changes:
- Expand the workflow matrix to include Java 26 alongside Java 25.
duanemay
marked this pull request as draft
July 16, 2026 22:45
Member
Author
|
java.lang.UnsupportedOperationException: Cannot define class using reflection: As of Java 26, using Unsafe is disabled by default, set net.bytebuddy.safe to true if you want to use the JVM's internal unsafe API even though it will become unsupported in the future and should be replaced by injection using method handles: net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup |
Java 26 disables Unsafe-based class definition by default. Mockito's ByteBuddy-generated mock subclasses fall back to that path when method-handle injection isn't available, which now throws UnsupportedOperationException. Opt back in via net.bytebuddy.safe until Mockito/ByteBuddy ship a default method-handle injection path. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ByteBuddy's own exception message says "set net.bytebuddy.safe to true if you want to use the unsafe API," but the property is actually a safe-mode switch: true disables Unsafe-based class definition, false keeps the legacy (Unsafe) path enabled. The prior commit set it to "true," which does nothing on Java 26 (already the default there) and newly broke Java 25 (previously "false" by default), producing the same 9 XMLUnit/AssertJ proxy-generation failures on both versions. Verified locally: full cloudfoundry-identity-server suite (4820 tests) passes with "false" on JDK 25. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
duanemay
marked this pull request as ready for review
July 17, 2026 13:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not an LTS, but good compatibility check. Otherwise this standalone test is not adding anything to the already run hsqldb tests