Try to avoid infinite loop
Issue: http://jira.grails.org/browse/GRAILS-9647
This commit is contained in:
@@ -47,7 +47,9 @@ public abstract class MethodProvider {
|
||||
TypeRegistry tr = registry;
|
||||
while (rtype == null) {
|
||||
ClassLoader pcl = tr.getClassLoader().getParent();
|
||||
if (pcl != null) {
|
||||
if (pcl == null) {
|
||||
break;
|
||||
} else {
|
||||
tr = TypeRegistry.getTypeRegistryFor(pcl);
|
||||
if (tr == null) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user