提交 eec271d7 编写于 作者: K Kohsuke Kawaguchi

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

上级 efc0ca16
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册