Skip to content

Commit 3fc733f

Browse files
committed
Removes setting FactoryBean.OBJECT_TYPE_ATTRIBUTE
It was previously ignored, changing it to a class introduces behaviour that breaks aot. This is required by spring-projects/spring-framework@a6ff95a
1 parent 7798ede commit 3fc733f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ private void eagerlyRegisterFeignClientBeanDefinition(String className, Map<Stri
248248
// code
249249
definition.addPropertyValue("qualifiers", qualifiers);
250250
AbstractBeanDefinition beanDefinition = definition.getBeanDefinition();
251-
Class<?> type = ClassUtils.resolveClassName(className, null);
252-
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, type);
253251
// has a default, won't be null
254252
boolean primary = (Boolean) attributes.get("primary");
255253
beanDefinition.setPrimary(primary);

0 commit comments

Comments
 (0)