Hibernate native image support broken by HHH-17643
#32311
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: regression
A bug that is also a regression
Milestone
HHH-17643 breaks Spring Framework native image support with Hibernate
6.4.3+
and6.2.21+
as it breaks the substitution shipped with Spring Framework with the following error message:Such breakage in a patch release, even if triggered by a change on an internal Hibernate API, is unfortunate given the ongoing effort between the 2 teams to try to collaborate on a suitable solution with synchronisation on both sides to avoid such unanticipated breakage, as it has been identified as a fragile (but required) way to make Hibernate compatible with Spring on native.
In practice, that means Spring Boot
3.2.3
and3.1.9
applications based respectively on Spring Framework6.1.4
and6.0.17
will have to downgrade Hibernate version on native to respectively Hibernate6.4.2
and6.2.20
.The Spring Framework upcoming fix in
6.1.5
and6.0.18
will consist in 2 parts:Target_BytecodeProviderInitiator
substitution more lenient by checking the related method exists before applying it.BytecodeProvider
on native by shipping anative-image-properties
with-H:ServiceLoaderFeatureExcludeServices=org.hibernate.bytecode.spi.BytecodeProvider
.The follow-up #32314 Spring Framework 6.2 issue has ben created to remove completely the 2 Hibernate substitutions when Hibernate
6.4.5
will be released with HHH-17568 fixed.The text was updated successfully, but these errors were encountered: