File tree 1 file changed +3
-2
lines changed
spring-context/src/main/java/org/springframework/context/annotation
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,9 @@ else if (bd instanceof AbstractBeanDefinition abstractBeanDef && abstractBeanDef
180
180
}
181
181
182
182
// Downgrade to lite (no enhancement) in case of no instance-level @Bean methods.
183
- if (!configClass .hasNonStaticBeanMethods () && ConfigurationClassUtils .CONFIGURATION_CLASS_FULL .equals (
184
- bd .getAttribute (ConfigurationClassUtils .CONFIGURATION_CLASS_ATTRIBUTE ))) {
183
+ if (!configClass .getMetadata ().isAbstract () && !configClass .hasNonStaticBeanMethods () &&
184
+ ConfigurationClassUtils .CONFIGURATION_CLASS_FULL .equals (
185
+ bd .getAttribute (ConfigurationClassUtils .CONFIGURATION_CLASS_ATTRIBUTE ))) {
185
186
bd .setAttribute (ConfigurationClassUtils .CONFIGURATION_CLASS_ATTRIBUTE ,
186
187
ConfigurationClassUtils .CONFIGURATION_CLASS_LITE );
187
188
}
You can’t perform that action at this time.
0 commit comments