nec
V2EX  ›  问与答

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

  •  
  •   nec · Jun 15, 2017 · 1626 views
    This topic created in 3277 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   ·   4413 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.