nec
V2EX  ›  问与答

Java 中使用 asm 可以给运行时的对象动态添加代码吗?

  •  
  •   nec · Jun 15, 2017 · 1589 views
    This topic created in 3254 days ago, the information mentioned may be changed or developed.
    如题

    需求是:给线上的正在运行的对象动态添加代码(类似动态线上 debug)

    可以怎么做?求教
    1 replies    2017-06-15 12:24:15 +08:00
    letitbesqzr
        1
    letitbesqzr  
       Jun 15, 2017
    看需求.. asm 能够动态生成代码..但是你需要的应该是类似 jrebel 这样的热加载吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2500 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:11 · PVG 00:11 · LAX 09:11 · JFK 12:11
    ♥ Do have faith in what you're doing.