-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Print disassembly of generated bytecode #612
Comments
Are you thinking about some kind of integration with https://github.com/fesh0r/fernflower? |
JClasslib is really good for this. Its not disassembled, but rather lets you look at the raw bytecode you have generated in an easy to understand way. |
JClasslib requires me to open that tool and set it up. I'd really love if I could set this property:
And have the generated classes in |
I like this idea, having spent quite a lot of time dealing with generated code in the last few weeks. It would be great if we could generate a fake "source" file that contains the bytecode generated plus some notation which includes the stack trace element of the line of code that generated that section of bytecode. The generated text file could then be set as the source file of the generated .class file, with line number tables that match up with the text, so that you can step through it in a debugger. |
Doing this via config should definitely be possible using the new code. |
Will the dissembler actually work on invalid bytecode? |
I think IDEA will reference any source file regardless of language (or lack there of), as long as it's the same file referenced in the bytecode and the file is in the right package on a source path (or in this case, generated source path). |
This makes it easy for Quarkus developers and extension authors to see the bytecode that Quarkus produces Fixes: quarkusio#612
This makes it easy for Quarkus developers and extension authors to see the bytecode that Quarkus produces Fixes: quarkusio#612
This makes it easy for Quarkus developers and extension authors to see the bytecode that Quarkus produces Fixes: quarkusio#612
This makes it easy for Quarkus developers and extension authors to see the bytecode that Quarkus produces Fixes: quarkusio#612
This makes it easy for Quarkus developers and extension authors to see the bytecode that Quarkus produces Fixes: quarkusio#612
This makes it easy for Quarkus developers and extension authors to see the bytecode that Quarkus produces Fixes: quarkusio#612
Integrate Fernflower decompiler into Quarkus build of fast-jar
Writing an extension that generates bytecode with ASM or gizmo pretty often you get things wrong and have verify errors or just buggy generated code. It would be really nice if there were an option to make shamrock generate disassembled bytecode of what we just generated.
The text was updated successfully, but these errors were encountered: