skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.17k stars 4.83k forks source link

JADX ERROR: Failed to decode insn: 0x0017: INVOKE_CUSTOM #1760

Open billpeace opened 1 year ago

billpeace commented 1 year ago
jadx.core.utils.exceptions.JadxRuntimeException: 'invoke-custom' instruction processing error:
Failed to process invoke-custom instruction:
CallSite{[
 {ENCODED_METHOD_HANDLE: INVOKE_STATIC: Ljava/lang/invoke/LambdaMetafactory;->altMetafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;},
 apply,
 {ENCODED_METHOD_TYPE: ()Lcom/baomidou/mybatisplus/core/toolkit/support/SFunction;},
 {ENCODED_METHOD_TYPE: (Ljava/lang/Object;)Ljava/lang/Object;},
 {ENCODED_METHOD_HANDLE: INVOKE_INSTANCE: Lcn/gwssi/extranet/app/khd/codeset/entity/PCTMkDmpzDmjxxT;->getDmjpzRid()Ljava/lang/Long;},
 {ENCODED_METHOD_TYPE: (Lcn/gwssi/extranet/app/khd/codeset/entity/PCTMkDmpzDmjxxT;)Ljava/lang/Object;},
 {ENCODED_INT: 5},
 {ENCODED_INT: 0}
]}
skylot commented 1 year ago

@billpeace please share sample apk, overwise I will be unable to reproduce and fix this issue.

billpeace commented 1 year ago

@billpeace please share sample apk, overwise I will be unable to reproduce and fix this issue.

JADX ERROR: Failed to decode insn: 0x0016: INVOKE_CUSTOM , method: at jadx.core.dex.instructions.InvokeCustomBuilder.build(InvokeCustomBuilder.java:34) at jadx.core.dex.instructions.InsnDecoder.invokeCustom(InsnDecoder.java:581) at jadx.core.dex.instructions.InsnDecoder.decode(InsnDecoder.java:440) at jadx.core.dex.instructions.InsnDecoder.lambda$process$0(InsnDecoder.java:50) at jadx.plugins.input.java.data.code.JavaCodeReader.visitInstructions(JavaCodeReader.java:82) at jadx.core.dex.instructions.InsnDecoder.process(InsnDecoder.java:45) at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:145) at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:410) at jadx.core.ProcessClass.process(ProcessClass.java:67) at jadx.core.ProcessClass.generateCode(ProcessClass.java:115) at jadx.core.dex.nodes.ClassNode.decompile(ClassNode.java:384) at jadx.core.dex.nodes.ClassNode.decompile(ClassNode.java:308) Caused by: jadx.core.utils.exceptions.JadxRuntimeException: Failed to process invoke-custom instruction: CallSite{、 at jadx.core.dex.instructions.InvokeCustomBuilder.build(InvokeCustomBuilder.java:32)

skylot commented 1 year ago

@billpeace thanks for sample! I commit a quick fix for this issue, please check latest unstable build. I still not sure if additional args in altMetafactory method can be used, I will check this later. Also, there are some other issues in the sample, I will try to resolve them too, so I will keep this issue open.

billpeace commented 1 year ago

@billpeace thanks for sample! I commit a quick fix for this issue, please check latest unstable build. I still not sure if additional args in altMetafactory method can be used, I will check this later. Also, there are some other issues in the sample, I will try to resolve them too, so I will keep this issue open.

thanks very much

hide955 commented 1 year ago

@skylot hi, last version JADX ERROR: Failed to decode insn: 0x0007: INVOKE_CUSTOM invoke-custom.zip