From 5b5934144a6ea26851f72d212b1f37349a2d7b2d Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 16 Feb 2010 00:02:03 +0000 Subject: [PATCH] Avoid infinite loop in InterceptMethodsBeanDefinitionDecoratorTests when upgrading to Spring 3.0.1. Converted test target to implement ApplicationListener so that it doesn't receive events from its own interceptor (which are in turn intercepted). --- .../security/config/TestBusinessBeanImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/src/test/java/org/springframework/security/config/TestBusinessBeanImpl.java b/config/src/test/java/org/springframework/security/config/TestBusinessBeanImpl.java index 7c7dffaf08..58920390d0 100644 --- a/config/src/test/java/org/springframework/security/config/TestBusinessBeanImpl.java +++ b/config/src/test/java/org/springframework/security/config/TestBusinessBeanImpl.java @@ -1,12 +1,12 @@ package org.springframework.security.config; -import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; +import org.springframework.security.core.session.SessionCreationEvent; /** * @author Luke Taylor */ -public class TestBusinessBeanImpl implements TestBusinessBean, ApplicationListener { +public class TestBusinessBeanImpl implements TestBusinessBean, ApplicationListener { public void setInteger(int i) { } @@ -27,7 +27,7 @@ public class TestBusinessBeanImpl implements TestBusinessBean, ApplicationListen public void unprotected() { } - public void onApplicationEvent(ApplicationEvent event) { + public void onApplicationEvent(SessionCreationEvent event) { System.out.println(event); } }