Skip to content

Commit

Permalink
Fix for #675: catch error for missing indirect reference
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Aug 14, 2018
1 parent f2614f2 commit bf56f69
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ protected static ClassNode tryResolveClassNode(String typeName, ModuleNode modul
try {
//ClassNode type = ((EclipseSourceUnit) module.getContext()).resolver.resolve(typeName);
Class<?> t = module.getContext().getClassLoader().loadClass(typeName, true, true, true);
return ClassHelper.make(t);
} catch (ClassNotFoundException e) {
ClassNode typeNode = ClassHelper.make(t);
typeNode.lazyClassInit();
return typeNode;
} catch (ClassNotFoundException | NoClassDefFoundError e) {
return null;
}
}
Expand Down

0 comments on commit bf56f69

Please sign in to comment.