mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-02-13 21:31:08 +08:00
ignore any exception when try load class
This commit is contained in:
parent
617d372545
commit
b5c0afb3da
@ -227,7 +227,9 @@ public class ClassUtil {
|
||||
ClassNode cn = new ClassNode();
|
||||
try {
|
||||
new ClassReader(className).accept(cn, 0);
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) {
|
||||
// Could be IOException, ClassCircularityError or NullPointerException
|
||||
// Ignore all of them
|
||||
return null;
|
||||
}
|
||||
return cn;
|
||||
|
Loading…
Reference in New Issue
Block a user