ignore any exception when try load class

This commit is contained in:
金戟 2021-04-03 18:17:11 +08:00
parent 617d372545
commit b5c0afb3da

View File

@ -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;