Skip to content

Commit 6ac13d1

Browse files
committed
Relax BeanRegistrar checks on bean definition attributes
This commit allows legit usage of AutoProxyUtils bean definition attributes with BeanRegistrar. Closes gh-35645
1 parent 179c63a commit 6ac13d1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassPostProcessor.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -928,13 +928,6 @@ private void checkUnsupportedFeatures(AbstractBeanDefinition beanDefinition) {
928928
if (!beanDefinition.getQualifiers().isEmpty()) {
929929
throw new UnsupportedOperationException("AOT post processing of qualifiers is not supported yet with BeanRegistrar");
930930
}
931-
for (String attributeName : beanDefinition.attributeNames()) {
932-
if (!attributeName.equals(AbstractBeanDefinition.ORDER_ATTRIBUTE) &&
933-
!attributeName.equals("aotProcessingIgnoreRegistration")) {
934-
throw new UnsupportedOperationException("AOT post processing of attribute " + attributeName +
935-
" is not supported yet with BeanRegistrar");
936-
}
937-
}
938931
}
939932

940933
private CodeBlock generateCustomizerMap() {

0 commit comments

Comments
 (0)