mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Groovy compiler doesn't seem to put the enclosing class information in the class file.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user