Re-order condition that checks for anonymous class

Workaround for ASM 5.0.2 bug that fixes gh-904
This commit is contained in:
Dave Syer
2014-05-20 12:35:44 +01:00
parent 2648f3cfd6
commit 7e9a4035db

View File

@@ -273,7 +273,7 @@ class BeanDefinitionLoader {
}
// Nested anonymous classes are not eligible for registration, nor are groovy
// closures
if (type.isAnonymousClass() || type.getName().matches(".*\\$_.*closure.*")
if (type.getName().matches(".*\\$_.*closure.*") || type.isAnonymousClass()
|| type.getConstructors() == null || type.getConstructors().length == 0) {
return false;
}