Re-order condition that checks for anonymous class
Workaround for ASM 5.0.2 bug that fixes gh-904
This commit is contained in:
parent
2648f3cfd6
commit
7e9a4035db
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue