Repository navigation
Require Java 25 - #3946
Open
akurtakov wants to merge 3 commits into
Open
Require Java 25#3946akurtakov wants to merge 3 commits into
akurtakov wants to merge 3 commits into
Conversation
Member
Author
|
Looking at it now, I'll split tests/examples in separate PRs as with this PR there are 1000+ warnings like "The value of the lambda parameter e is not used" and tests require org.eclipse.test which is Java 25 bundle so they can't be used on 21 already. |
Contributor
vogella
approved these changes
Dec 4, 2026
vogella
left a comment
Contributor
There was a problem hiding this comment.
Finally SWT moves to Java 25. This was a long journey
Member
Author
|
#3949 takes care of tests and examples which is majority of the noise. |
Raise the BREE of all bundles to JavaSE-25 and bump their minor versions. The CI builds already use Java 25. This allows using the Foreign Function & Memory API (final since Java 22) instead of JNI.
akurtakov
force-pushed
the
bree-java-25
branch
from
December 4, 2026 11:45
2b77810 to
ff113e3
Compare
With Java 25 the compiler warns about every lambda parameter that is not used. Name these parameters _ (unnamed variables, Java 22).
DeflaterOutputStream does not end a Deflater passed to it, so its native memory was only freed by the cleaner. Close the Deflater with try-with-resources; it is AutoCloseable since Java 25, and the compiler reports the leak.
akurtakov
force-pushed
the
bree-java-25
branch
from
December 4, 2026 12:10
ccab4d2 to
ad75959
Compare
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.
Raise the BREE of all bundles to JavaSE-25 and bump their minor
versions. The CI builds already use Java 25. This allows using the
Foreign Function & Memory API (final since Java 22) instead of JNI.