Affects: spring-boot 3.0.0-rc2


I've a little example application which I've ported to spring-boot 3.0.0 (rc2 at the moment) and it works fine in Bytcode mode. Now I've also tried to build a native docker image using mvn -Pnative spring-boot:build-image (what works after a solving a view problems) and start it. Starting the application fails with a IllegalStateException because it "Did not find a static field of the same type in class de.knightsoftnet.validationexample.shared.models.QPerson". QPerson is the class generated by Querydsl for the really simple Person entity. Here you can find the stacktrace.txt

PS: Working with AbstractPersistable also fails in native mode, there is no id found

Comment From: sbrannen

It sounds to me like this would need to be addressed in the Spring Data project.

@odrotbohm, @mp911de: can one of you transfer this?

Comment From: christophstrobl

Sounds like that's already covered by spring-projects/spring-data-commons#2721.

Comment From: sbrannen

Thanks for the feedback, @christophstrobl. 👍

Closing as a duplicate of https://github.com/spring-projects/spring-data-commons/issues/2721.