do not process vars if there were errors in the method

This commit is contained in:
Egor.Ushakov
2017-04-21 19:16:45 +03:00
parent 7041accfe9
commit 0b442fc64b

View File

@@ -158,6 +158,7 @@ public class ClassWrapper {
methods.addWithKey(methodWrapper, InterpreterUtil.makeUniqueKey(mt.getName(), mt.getDescriptor())); methods.addWithKey(methodWrapper, InterpreterUtil.makeUniqueKey(mt.getName(), mt.getDescriptor()));
if (!isError) {
// rename vars so that no one has the same name as a field // rename vars so that no one has the same name as a field
varProc.refreshVarNames(new VarNamesCollector(setFieldNames)); varProc.refreshVarNames(new VarNamesCollector(setFieldNames));
@@ -185,6 +186,7 @@ public class ClassWrapper {
}); });
} }
} }
}
DecompilerContext.getLogger().endMethod(); DecompilerContext.getLogger().endMethod();
} }