Spring Boot 3.2.0-RC1 application fails on JDK with CRaC but without a dependency on org.crac:crac #38186
Labels
type: regression
A regression from a previous release
Milestone
I ran into this problem while starting to prepare for Spring Boot 3.2 upgrade on one of the project's I'm currently working on. The problem is reproducible on simplest possible Spring Boot application based on 3.2.0-RC1 that doesn't use CRaC but runs on JDK with CRaC. Such setup results in the following error:
I ran into this by building the project on GitHub Actions and using Zulu JDK 17, and in such environment the JDK variant with CRaC will be installed:
It seems that the cause for this is the following code in
SpringApplication
that makes an assumption that CRaC will be used (and thatorg.crac.management.CRaCMXBean
is available on the classpath) simply on presence ofjdk.crac
:spring-boot/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
Lines 1686 to 1689 in bf73131
The text was updated successfully, but these errors were encountered: