From 7686f5467e5b4b6ef27e9fa97990f2962b9bcc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 22 Feb 2024 17:06:53 +0100 Subject: [PATCH] Adapt Hibernate native support for HHH-17643 This commit adapts Hibernate native support to handle the changes performed as part of HHH-17643 which impacts Hibernate versions 6.4.3+ and 6.2.21+. It ignores the BytecodeProvider services loaded by the service loader feature in order to default to the "no-op" provider with native. gh-32314 is expected to remove the need for such substitutions which are not great for maintainability by design. Closes gh-32312 --- .../org.springframework/spring-orm/native-image.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 spring-orm/src/main/resources/META-INF/native-image/org.springframework/spring-orm/native-image.properties diff --git a/spring-orm/src/main/resources/META-INF/native-image/org.springframework/spring-orm/native-image.properties b/spring-orm/src/main/resources/META-INF/native-image/org.springframework/spring-orm/native-image.properties new file mode 100644 index 0000000000..ae2375f264 --- /dev/null +++ b/spring-orm/src/main/resources/META-INF/native-image/org.springframework/spring-orm/native-image.properties @@ -0,0 +1 @@ +Args = -H:ServiceLoaderFeatureExcludeServices=org.hibernate.bytecode.spi.BytecodeProvider