diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java b/org.springframework.integration/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java index 7c669a8001..4de00ca897 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java @@ -190,6 +190,7 @@ final class GlobalChannelInterceptorBeanPostProcessor implements BeanPostProcess Pattern p = compiledPatterns.get(channelPattern); if (p == null){ p = Pattern.compile(channelPattern); + compiledPatterns.put(channelPattern, p); } Matcher m = p.matcher(beanName); if (m.find()){