Fix handling of @EnableLoadTimeWeaving AUTODETECT

Issue: SPR-8643
This commit is contained in:
Chris Beams
2011-09-03 22:37:16 +00:00
parent 4e522c0cc3
commit 2e5f3559d3
2 changed files with 57 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ public class LoadTimeWeavingConfiguration implements ImportAware, BeanClassLoade
// AJ weaving is disabled -> do nothing
break;
case AUTODETECT:
if (this.beanClassLoader.getResource(ASPECTJ_AOP_XML_RESOURCE) != null) {
if (this.beanClassLoader.getResource(ASPECTJ_AOP_XML_RESOURCE) == null) {
// No aop.xml present on the classpath -> treat as 'disabled'
break;
}