-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
spring-boot-maven-plugin:3.1.5 is not compatible with JDK 22 #37974
Comments
We don't yet support Java 22 so problems like this are to be expected at the moment. In this case, if you re-run with
spring-projects/spring-framework#31459 is tracking Framework's Java 22 support. |
Please note that support for Java 22 and later will require Spring Framework 6.1 and, therefore, Spring Boot 3.2. |
@wilkinsona Sorry for resurrecting old issue, but spring boot 3.2.3 still has issues with JDK 22 - looks like the ASM should be upgraded in spring-boot-maven-plugin. |
@krzyk that shouldn't be the case as Spring Framework's embedded version of ASM (which is what Boot's Maven plugin uses) has supported Java 22 since the 6.1.0 milestones. Please open a new issue with a minimal sample that reproduces the problem and we can take a deeper look. |
Issue is not with spring per se, but with spring-boot-maven-plugin, I'll create issue, as it is easy to reproduce (just generate project from https://start.spring.io/ change java version to 22 and it fails) Created #39927 |
Hi,
I am testing a spring project with the latest JDK versions.
when running our spring app with JDK 22-ea, the build failed with the following error
maven version: 3.9.5
java version: 22-ea
The text was updated successfully, but these errors were encountered: