From 2a5e815b6b003aef863cef6af136c801ca4222d8 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Fri, 22 Sep 2023 13:31:40 -0400 Subject: [PATCH] Removes setting FactoryBean.OBJECT_TYPE_ATTRIBUTE It was previously ignored, changing it to a class introduces behaviour that breaks aot. This is required by https://github.com/spring-projects/spring-framework/commit/a6ff95a69c765b029ce0dca960345cc4360f5a58 Fixes gh-912 --- .../springframework/cloud/openfeign/FeignClientsRegistrar.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java index cb7185db..dbd6ce25 100644 --- a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java +++ b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java @@ -32,7 +32,6 @@ import java.util.Set; import feign.Request; import org.springframework.aop.scope.ScopedProxyUtils; -import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition; import org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition; import org.springframework.beans.factory.config.BeanDefinition; @@ -291,7 +290,6 @@ class FeignClientsRegistrar implements ImportBeanDefinitionRegistrar, ResourceLo validate(attributes); AbstractBeanDefinition beanDefinition = definition.getBeanDefinition(); - beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, className); beanDefinition.setAttribute("feignClientsRegistrarFactoryBean", factoryBean); // has a default, won't be null