-
-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Java 21 #1640
Support Java 21 #1640
Conversation
f661b01
to
6c57b39
Compare
* Support Java 17 and 21, default compilation to Java 17 class files * Add profile "j21" to compile to Java 21 class files * Upgrade SAT to 0.16.0 * Adapt Karaf scpipts to allow both Java 17 and 21 Signed-off-by: Holger Friedrich <[email protected]>
6c57b39
to
568e895
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Do you know of any other known issues besides openhab/openhab-addons#16591?
I am not aware of other issues. Need to migrate my test server to Java 21... |
@wborn did you intentionally delay the merge of this one? You already added it to the 4.2 milestone... |
Avoid ZipException with ejc >3.30.0. Signed-off-by: Holger Friedrich <[email protected]>
Included upgrade for maven-compiler-plugin, refs openhab/openhab-core#4167 |
I wanted to give it another test with Java 21 myself too before the check is removed and users start creating issues that they have issues when using Java 21. 😉 |
@wborn Highly appreciated. Don't miss the It would be good if this PR is part of M2, as it contains the modification of the karaf start scripts that need to go into the deb packages. I am doing full builds with verify of the current main branches as well, core and webui are fine. Addons still running. |
There seems to be an issue in the Java21 core build, when output is set to 17. The native J21 build works. |
With the PRs mentioned above (openhab/openhab-addons#16612, openhab/openhab-addons#16615, openhab/openhab-core#4171) , everything should be fine: see my CI builds here: 🥳 |
@kaikreuzer will you trigger a new milestone build this weekend? Would be nice if this one makes it into M2.... |
I just gave running openHAB on Java 21 another test but there seems to be some issue with date formats when deserializing timestamps on Java 21. These errors show up when restarting openHAB:
|
Thanks, @wborn. I will be busy the next days, so this has to wait - unless you are willing to step in here. |
Yes, planned for tomorrow. With @wborn's observations, I think there is no rush to merge this and declare Java 21 support just yet. Better do this on snapshots and make them "round" before M3. |
Yes, if there are differences in deserialization, we will likely need some time to get this final. |
@wborn As openhab/openhab-core#4174 is now closed, it could be worth a next try. MapDB should not behave as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The exceptions are gone. 👍
Allow for compiling with Java 21
Refs:
#1590
openhab/openhab-core#4161
openhab/openhab-addons#16594