From cf507347445107b30a6db5ec4c3011551f8eae2b Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 2 Mar 2011 14:26:01 -0500 Subject: [PATCH] INT-1814 fixed the casting error --- .../integration/endpoint/EventDrivenConsumer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/endpoint/EventDrivenConsumer.java b/spring-integration-core/src/main/java/org/springframework/integration/endpoint/EventDrivenConsumer.java index 30b0ee2076..2266491660 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/endpoint/EventDrivenConsumer.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/endpoint/EventDrivenConsumer.java @@ -47,8 +47,8 @@ public class EventDrivenConsumer extends AbstractEndpoint { @Override protected void doStart() { - if (this.handler instanceof IntegrationObjectSupport){ - String channelName = ((AbstractSubscribableChannel)this.inputChannel).getComponentName(); + if (this.handler instanceof IntegrationObjectSupport && this.inputChannel instanceof IntegrationObjectSupport){ + String channelName = ((IntegrationObjectSupport)this.inputChannel).getComponentName(); String componentType = ((IntegrationObjectSupport)this.handler).getComponentType(); componentType = StringUtils.hasText(componentType) ? componentType : ""; String componentName = ((IntegrationObjectSupport)this).getComponentName();