Groovy compiler doesn't seem to put the enclosing class information in the class file.

This commit is contained in:
Kohsuke Kawaguchi committed 2013-07-17 16:41:12 -07:00
1 parent efc0ca16fb
commit eec271d76d
1 file changed
+5
@@ -72,6 +72,11 @@ public class TestExtensionLoader extends GuiceExtensionAnnotation<TestExtension>
return true; // enclosed
}
}
// Groovy compiler doesn't seem to put the enclosing class information in the class file,
// so this fallback rule would catch those cases.
if (((Class)e).getName().startsWith(className+"$"))
return true;
return false;
}
if (e instanceof Field) {