Skip to content

Commit

Permalink
ASM sometimes falls over on JRE classes, protect against that.
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhw committed Feb 26, 2009
1 parent 748aa93 commit 5f14db4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/groovy/org/grumblesmurf/malabar/Classpath.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ class Classpath
def getMembersInternal(Class c, Set seenMethods) {
ClassReader cr = getClassReader(c.name);
ClassInfo cir = new ClassInfo();
cr.accept(cir, false);
try {
cr.accept(cir, false);
} catch (Exception e) {
// cr sometimes barfs on JRE classes
}

def methodPrinter = {
def desc = it.name + Type.getMethodDescriptor(it)
Expand Down

0 comments on commit 5f14db4

Please sign in to comment.