mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Disable Hibernate reflection optimizer with native
Closes gh-30521
This commit is contained in:
+1
@@ -48,6 +48,7 @@ class SpringHibernateJpaPersistenceProvider extends HibernatePersistenceProvider
|
||||
static {
|
||||
if (NativeDetector.inNativeImage()) {
|
||||
System.setProperty(Environment.BYTECODE_PROVIDER, Environment.BYTECODE_PROVIDER_NAME_NONE);
|
||||
System.setProperty(Environment.USE_REFLECTION_OPTIMIZER, Boolean.FALSE.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user