File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
spring-context/src/main/java/org/springframework/context/support Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ protected void invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory b
726
726
727
727
// Detect a LoadTimeWeaver and prepare for weaving, if found in the meantime
728
728
// (e.g. through an @Bean method registered by ConfigurationClassPostProcessor)
729
- if (beanFactory .getTempClassLoader () == null && beanFactory .containsBean (LOAD_TIME_WEAVER_BEAN_NAME )) {
729
+ if (! IN_NATIVE_IMAGE && beanFactory .getTempClassLoader () == null && beanFactory .containsBean (LOAD_TIME_WEAVER_BEAN_NAME )) {
730
730
beanFactory .addBeanPostProcessor (new LoadTimeWeaverAwareProcessor (beanFactory ));
731
731
beanFactory .setTempClassLoader (new ContextTypeMatchClassLoader (beanFactory .getBeanClassLoader ()));
732
732
}
You can’t perform that action at this time.
0 commit comments