From ab21bd4266fbac261f8b496571311f6367282d52 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 13 Dec 2012 00:04:17 +0100 Subject: [PATCH] Fixed targetSourcedBeans contains check (along with changes for 3.2 GA) --- .../aop/framework/autoproxy/AbstractAutoProxyCreator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.springframework.aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java b/org.springframework.aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java index 7959b53b02..cf55b82cfa 100644 --- a/org.springframework.aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java +++ b/org.springframework.aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -271,7 +271,7 @@ public abstract class AbstractAutoProxyCreator extends ProxyConfig public Object postProcessBeforeInstantiation(Class beanClass, String beanName) throws BeansException { Object cacheKey = getCacheKey(beanClass, beanName); - if (!this.targetSourcedBeans.contains(cacheKey)) { + if (!this.targetSourcedBeans.contains(beanName)) { if (this.advisedBeans.contains(cacheKey) || this.nonAdvisedBeans.contains(cacheKey)) { return null; }