Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open Kotlin classes in Assembler #772

Closed
036 opened this issue Apr 2, 2024 · 1 comment
Closed

Unable to open Kotlin classes in Assembler #772

036 opened this issue Apr 2, 2024 · 1 comment

Comments

@036
Copy link
Contributor

036 commented Apr 2, 2024

Describe the bug

Edit class in disassembler fails on Kotlin non-obfuscated samples in the latest Dev4

To Reproduce

Steps to reproduce the behavior:

  1. Open a jar that has been built using Kotlin.
  2. Navigate to any class
  3. Edit class in Assembler
  4. See error

Exception

10:54:47.741 [JvmAssemblerPipeline/ForkJoinPool.commonPool-worker-14] ERROR: Uncaught error creating class printer for: common/behaviour/leafs/DropItems
java.lang.IllegalArgumentException: Cannot convert [I@70ba1b54 into annotation element
        at dev.xdark.blw.asm.internal.Util.wrapElement(Util.java:193)
        at dev.xdark.blw.asm.internal.AsmAnnotationVisitor.visit(AsmAnnotationVisitor.java:19)
        at org.objectweb.asm.ClassReader.readElementValue(ClassReader.java:3157)
        at org.objectweb.asm.ClassReader.readElementValues(ClassReader.java:3009)
        at org.objectweb.asm.ClassReader.accept(ClassReader.java:609)
        at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
        at dev.xdark.blw.asm.internal.InternalAsmLibrary.read(InternalAsmLibrary.java:82)
        at dev.xdark.blw.asm.AsmBytecodeLibrary.read(AsmBytecodeLibrary.java:22)
        at me.darknet.assembler.printer.JvmClassPrinter.<init>(JvmClassPrinter.java:34)
        at software.coley.recaf.services.assembler.JvmAssemblerPipeline.classPrinter(JvmAssemblerPipeline.java:161)
        at software.coley.recaf.services.assembler.JvmAssemblerPipeline.disassemble(JvmAssemblerPipeline.java:79)
        at software.coley.recaf.services.assembler.AssemblerPipeline.disassemble(AssemblerPipeline.java:173)
        at software.coley.recaf.services.assembler.JvmAssemblerPipeline$Proxy$_$$_WeldClientProxy.disassemble(Unknown Source)
        at software.coley.recaf.ui.pane.editing.assembler.AssemblerPane.lambda$disassemble$12(AssemblerPane.java:300)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

Screenshots

image

@Col-E
Copy link
Owner

Col-E commented Apr 3, 2024

a041775

@Col-E Col-E closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants