generator-jhipster icon indicating copy to clipboard operation
generator-jhipster copied to clipboard

JHipster 8 doesn't work with Java 22

Open mraible opened this issue 1 year ago • 4 comments

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

mraible avatar Mar 20 '24 15:03 mraible

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 :thinking:

atomfrede avatar Mar 26 '24 05:03 atomfrede

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.

mshima avatar Mar 26 '24 16:03 mshima

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.

atomfrede avatar Mar 27 '24 05:03 atomfrede

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

dwarakaprasad avatar Mar 31 '24 16:03 dwarakaprasad