默认情况下,字节码查看器处于只读模式。
有没有办法修改代码并保存到新的类文件中?
最佳答案
有一个插件叫Bytecode Editor :
Provides View | Edit Bytecode action for those who learns JVM internals.
Based on ByteCode Viewer by JetBrains but is better:
- it uses an editor tab instead of a popup
- it allows you to edit bytecode assembler and assemble edited code back into .class files
- it provides default hotkey for bytecode analysis: Ctrl+K, Ctrl+B
关于java - 在IntelliJ中,有没有办法在字节码查看器中修改反编译的类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43443299/