java - 在IntelliJ中,有没有办法在字节码查看器中修改反编译的类?

标签 java intellij-idea bytecode decompiling

默认情况下,字节码查看器处于只读模式。

有没有办法修改代码并保存到新的类文件中?

最佳答案

有一个插件叫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/

相关文章:

java - TreeCellRenderer 的设计

java - 我的 JSON 输出有什么问题? retrofit.converter.ConversionException 异常

java - 无法在 mac os 上使用 maven3 使用 intellij IDEA 2019.2 下载源代码

erlang - erlang BEAM字节码

java - 是否可以通过分析Java字节码来估计Dalvik字节码执行的指令数

java - 哪个是处理离线数据的最佳数据库应用程序?

java - JBoss standalone.conf VS standalone.conf.bat

android - 为什么IDEA找不到@android :drawable/ic_btn_search?

java - Dropwizard Forms MULTIPART - 启动时资源抛出错误

java - 什么是 Java 字节码注入(inject)?