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
1 changed files with 1 additions and 1 deletions

View File

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