Skip to content
Permalink
Browse files
[JENKINS-18776] Groovy compiler doesn't seem to put the enclosing cla…
…ss information in the class file.

(cherry picked from commit eec271d)
  • Loading branch information
kohsuke authored and olivergondza committed Sep 19, 2013
1 parent 410d1b9 commit fb31f6d8dc77cc9d27d7451e13f8c8d328ecb538
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/src/main/java/org/jvnet/hudson/test/TestExtensionLoader.java
@@ -72,6 +72,11 @@ protected boolean isActive(AnnotatedElement e) {
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) {

0 comments on commit fb31f6d

Please sign in to comment.