Skip to content

Commit 2a5e815

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 Fixes gh-912
1 parent 3a353b1 commit 2a5e815

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

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import feign.Request;
3333

3434
import org.springframework.aop.scope.ScopedProxyUtils;
35-
import org.springframework.beans.factory.FactoryBean;
3635
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
3736
import org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition;
3837
import org.springframework.beans.factory.config.BeanDefinition;
@@ -291,7 +290,6 @@ private void lazilyRegisterFeignClientBeanDefinition(String className, Map<Strin
291290
validate(attributes);
292291

293292
AbstractBeanDefinition beanDefinition = definition.getBeanDefinition();
294-
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, className);
295293
beanDefinition.setAttribute("feignClientsRegistrarFactoryBean", factoryBean);
296294

297295
// has a default, won't be null

0 commit comments

Comments
 (0)