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

JHipster 8 doesn't work with Java 22 #25562

Open
mraible opened this issue Mar 20, 2024 · 4 comments · May be fixed by #25645 or #25658
Open

JHipster 8 doesn't work with Java 22 #25562

mraible opened this issue Mar 20, 2024 · 4 comments · May be fixed by #25645 or #25658

Comments

@mraible
Copy link
Contributor

mraible commented Mar 20, 2024

Overview of the issue

JHipster 8 doesn't work with Java 22. If you're using Gradle, you get an error:

BUG! exception in phase 'semantic analysis' in source unit 'precompiled_…' Unsupported class file major version 66

If you're using Maven, CRLFLogConverterTest doesn't pass.

Screenshot 2024-03-20 at 9 06 59 AM
Motivation for or Use Case

We should support the latest release of Java.

Reproduce the error
sdk install java open-22
jhipster --defaults
Suggest a Fix

Upgrade to Gradle 8.7 and fix the test.

JHipster Version(s)

8.2.0

@atomfrede
Copy link
Member

atomfrede commented Mar 26, 2024

Do we have already update to spring boot 3.2.4? The class file error comes from the gradle boot plugin which need to be updated to 3.2.4 for java 22 as far as I can tell.

EDIT: nevermind, it should be 3.2.4 already 🤔

@mshima
Copy link
Member

mshima commented Mar 26, 2024

Do we have already update to spring boot 3.2.4? The class file error comes from the gradle boot plugin which need to be updated to 3.2.4 for java 22 as far as I can tell.

EDIT: nevermind, it should be 3.2.4 already 🤔

v8.2.1 was released with spring-boot 3.2.3.
Tests results should be updated.

@atomfrede
Copy link
Member

On master we have 3.2.4 right? At least thats what I see in a generated application. Didn't check yet if that version is really used eventually.

@mraible mraible linked a pull request Mar 28, 2024 that will close this issue
6 tasks
dwarakaprasad added a commit to dwarakaprasad/generator-jhipster that referenced this issue Mar 28, 2024
dwarakaprasad added a commit to dwarakaprasad/generator-jhipster that referenced this issue Mar 28, 2024
dwarakaprasad added a commit to dwarakaprasad/generator-jhipster that referenced this issue Mar 28, 2024
@dwarakaprasad
Copy link
Contributor

Seems like jhipster's reactive stack will have to wait until byte-buddy && BlockHound are resolved...

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