Fixing the ClassLoader.defineClass() method issue that could not find the necessary...
[jpf-core.git] / src / main / gov / nasa / jpf / vm / ClassLoaderInfo.java
index 07fbf5f..dec2423 100644 (file)
@@ -585,7 +585,12 @@ public class ClassLoaderInfo
           }          
         }
       }
-      
+      // TODO: Fix for Groovy's model-checking
+      // TODO: May need to do a recursive lookup
+      if (parent != null) {
+        return parent.loadClass(typeName);
+      }
+
       // initiate the roundtrip & bail out
       pushloadClassFrame(typeName);
       throw new LoadOnJPFRequired(typeName);