fix: attach method details before OverrideMethodVisitor
This commit is contained in:
@@ -57,6 +57,7 @@ public class Jadx {
|
||||
passes.add(new BlockExceptionHandler());
|
||||
passes.add(new BlockFinish());
|
||||
|
||||
passes.add(new AttachMethodDetails());
|
||||
passes.add(new OverrideMethodVisitor());
|
||||
|
||||
passes.add(new SSATransform());
|
||||
@@ -65,7 +66,6 @@ public class Jadx {
|
||||
passes.add(new InitCodeVariables());
|
||||
passes.add(new MarkFinallyVisitor());
|
||||
passes.add(new ConstInlineVisitor());
|
||||
passes.add(new AttachMethodDetails());
|
||||
passes.add(new TypeInferenceVisitor());
|
||||
if (args.isDebugInfo()) {
|
||||
passes.add(new DebugInfoApplyVisitor());
|
||||
|
||||
@@ -8,13 +8,17 @@ import jadx.core.dex.nodes.MethodNode;
|
||||
import jadx.core.dex.nodes.RootNode;
|
||||
import jadx.core.dex.nodes.utils.MethodUtils;
|
||||
import jadx.core.dex.visitors.shrink.CodeShrinkVisitor;
|
||||
import jadx.core.dex.visitors.typeinference.TypeInferenceVisitor;
|
||||
import jadx.core.utils.exceptions.JadxException;
|
||||
|
||||
@JadxVisitor(
|
||||
name = "Attach Method Details",
|
||||
desc = "Attach method details for invoke instructions",
|
||||
runBefore = {
|
||||
CodeShrinkVisitor.class
|
||||
CodeShrinkVisitor.class,
|
||||
TypeInferenceVisitor.class,
|
||||
MethodInvokeVisitor.class,
|
||||
OverrideMethodVisitor.class
|
||||
}
|
||||
)
|
||||
public class AttachMethodDetails extends AbstractVisitor {
|
||||
|
||||
Reference in New Issue
Block a user