Upgrade to the latest SF and fix HTTP Reactive
https://build.spring.io/browse/INT-FATS5IC-206/ Also use `AopUtils.getTargetClass()` directly in the `ReactiveHttpRequestExecutingMessageHandler` since it never returns `null`
This commit is contained in:
@@ -148,7 +148,8 @@ public class MessagingAnnotationPostProcessor implements BeanPostProcessor, Bean
|
||||
@Override
|
||||
public Object postProcessAfterInitialization(final Object bean, final String beanName) throws BeansException {
|
||||
Assert.notNull(this.beanFactory, "BeanFactory must not be null");
|
||||
final Class<?> beanClass = this.getBeanClass(bean);
|
||||
|
||||
Class<?> beanClass = AopUtils.getTargetClass(bean);
|
||||
|
||||
ReflectionUtils.doWithMethods(beanClass, method -> {
|
||||
Map<Class<? extends Annotation>, List<Annotation>> annotationChains = new HashMap<>();
|
||||
@@ -260,11 +261,6 @@ public class MessagingAnnotationPostProcessor implements BeanPostProcessor, Bean
|
||||
return false;
|
||||
}
|
||||
|
||||
protected Class<?> getBeanClass(Object bean) {
|
||||
Class<?> targetClass = AopUtils.getTargetClass(bean);
|
||||
return (targetClass != null) ? targetClass : bean.getClass();
|
||||
}
|
||||
|
||||
protected String generateBeanName(String originalBeanName, Method method,
|
||||
Class<? extends Annotation> annotationType) {
|
||||
String baseName = originalBeanName + "." + method.getName() + "."
|
||||
|
||||
Reference in New Issue
Block a user