From 3fc733f7ade6219dc8e665757d57401e785cdd08 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Tue, 15 Aug 2023 17:10:12 -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 --- .../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 06826a41..cb7185db 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 @@ -248,8 +248,6 @@ class FeignClientsRegistrar implements ImportBeanDefinitionRegistrar, ResourceLo // code definition.addPropertyValue("qualifiers", qualifiers); AbstractBeanDefinition beanDefinition = definition.getBeanDefinition(); - Class type = ClassUtils.resolveClassName(className, null); - beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, type); // has a default, won't be null boolean primary = (Boolean) attributes.get("primary"); beanDefinition.setPrimary(primary);