Skip to content
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

Java 21 LTS support #7369

Open
miloit opened this issue Jan 22, 2025 · 1 comment
Open

Java 21 LTS support #7369

miloit opened this issue Jan 22, 2025 · 1 comment

Comments

@miloit
Copy link

miloit commented Jan 22, 2025

Creating a feature request

Is your feature request related to a problem? Please describe:

OpenHAB 5.0.0 is scheduled for the summer release, and it is essential to align with modern Java versions to leverage the latest language enhancements, performance improvements, and security updates. Currently, OpenHAB 4.x is not optimized for Java 21, which is the latest LTS (Long-Term Support) version of Java but it's running under Java 21. This limitation may hinder developers from utilizing Java 21 features and maintaining compatibility with the ecosystem.

Describe the solution you'd like:

Ensure OpenHAB 5.0.0 is fully compatible with Java 21 by updating dependencies, libraries, and configurations to support the latest features and runtime.

Conduct extensive testing to ensure stability and reliability when running OpenHAB 5.0.0 on Java 21.

Provide clear documentation and guidelines to migrate from Java 17 to Java 21.

Describe alternatives you've considered:

Maintain dual compatibility with Java 17 and Java 21, but this increases maintenance overhead and could lead to inconsistencies in supported features.

Additional context

OpenHAB’s move to Java 21 aligns with the industry trend of utilizing the latest LTS versions for modern application development.

@MichaIng
Copy link
Owner

We currently install Java from the Debian repository, where Trixie ships Java 21: https://packages.debian.org/openjdk-21-jdk-headless

We do provide Trixie images, but since it is Debian testing, packages can receive major version upgrades, i.e. breaking changes: https://dietpi.com/downloads/images/

We are thinking about installing Java from another source. But it has not been implemented yet. See my last post, and follow the instructions to install any Java version via Adoptium APT repository: #4505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants