GraxCode / zelixkiller

Deobfuscate ZKM up to version 11, replaced by threadtear
GNU General Public License v3.0
67 stars 20 forks source link

Wrong remove of TryCatchBlock #11

Closed zhanhb closed 4 years ago

zhanhb commented 4 years ago

https://github.com/GraxCode/zelixkiller/blob/8f607e98b746c9b57592798ae88b731a9efbfa19/src/me/nov/zelixkiller/transformer/zkm/ExceptionObfuscationTX.java#L39 Not all case can be safely removed.

try {
    doSomeThing();
} catch (RuntimeException ex) {
    throw ex;
} catch (Throwable t) {
    throw new RuntimeException(t);
}