mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-25 03:40:38 +08:00
ClassCircularityError is not an exception
This commit is contained in:
parent
14e4d2db5b
commit
cc2deeff1c
@ -6,7 +6,6 @@ import org.objectweb.asm.ClassReader;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import org.objectweb.asm.tree.MethodInsnNode;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@ -227,7 +226,7 @@ public class ClassUtil {
|
||||
ClassNode cn = new ClassNode();
|
||||
try {
|
||||
new ClassReader(className).accept(cn, 0);
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
// Could be IOException, ClassCircularityError or NullPointerException
|
||||
// Ignore all of them
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user