From 35964fc935515f32e17107b3ec2b5d85fa389aa5 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Mon, 4 Dec 2023 18:01:13 +0100 Subject: [PATCH] GH-2728 Reverse order of propagation of beans between parent and child context Resolves #2728 --- .../cloud/stream/binder/DefaultBinderFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/DefaultBinderFactory.java b/core/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/DefaultBinderFactory.java index 1c4d5c1d3..619a5e2a2 100644 --- a/core/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/DefaultBinderFactory.java +++ b/core/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/DefaultBinderFactory.java @@ -501,7 +501,7 @@ public class DefaultBinderFactory implements BinderFactory, DisposableBean, Appl binderProducingContext); } if (!useApplicationContextAsParent || "integration".equals(binderType.getDefaultName())) { - this.propagateSharedBeans((GenericApplicationContext) this.context, binderProducingContext); + this.propagateSharedBeans(binderProducingContext, (GenericApplicationContext) this.context); } }