有 JRebel 的开源替代方案吗 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
monetto
V2EX    Java

有 JRebel 的开源替代方案吗

  •  
  •   monetto 2021-01-07 10:00:36 +08:00 4563 次点击
    这是一个创建于 1806 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,有类似于 JRebel 的开源替代方案吗? Debug 只能修改方法体,但是不能修改函数类型,参数等...

    10 条回复    2024-09-08 21:04:01 +08:00
    ImShiYue
        1
    ImShiYue  
       2021-01-07 10:07:44 +08:00
    别的试过,还没 JRebel 一半好用,付费的就是不一样
    tinyuu
        2
    tinyuu  
       2021-01-07 10:11:17 +08:00   1
    http://hotswapagent.org/index.html
    > Features
    In contrast to standard Java, where the hotswap is limited to in-body code changes, the DCEVM + HotswapAgent allow following code changes:

    Add/remove/modify class fields.
    Add/remove/modify methods. Add/remove/modify method annotations
    Add/remove/modify classes including anonymous classes. HotswapAgent handless correct anonymous class redefinitions.
    Add/remove static member of classes. HotswapAgent handles static member initialization.
    Add/remove enum values
    Refresh framework and application server settings
    The only unsupported operation is hierarchy change (change the superclass or remove an interface).

    DCEVM realizes hotswap on JVM level. HotwapAgent does the same on level of Java frameworks and servlet containers. Both projects used together forms excellent combination for daily development not only in Java but also in another JVM languages.
    monetto
        3
    monetto  
    OP
       2021-01-07 10:21:00 +08:00 via iPhone
    @tinyuu 感谢,但是不支持 JDk6 啊
    qwerthhusn
        4
    qwerthhusn  
       2021-01-07 10:40:51 +08:00
    @monetto 卧槽,现在还在用 JDK6
    tinyuu
        5
    tinyuu  
       2021-01-07 10:46:43 +08:00
    @monetto 哈哈哈 受苦了啊 不行弄个“那啥的 JRebel”
    hantsy
        6
    hantsy  
       2021-01-07 19:14:09 +08:00
    完全没兴趣。修改代码后,立即跑测试验证。

    不用 Debug,我也不会用。
    monetto
        7
    monetto  
    OP
       2021-01-07 19:16:11 +08:00
    @hantsy 公司的某大型项目 JDK6 的,要启动 10 分钟。
    hantsy
        8
    hantsy  
       2021-01-07 19:20:39 +08:00
    @monetto JRebel 如果我理解的不错,应该只是开发用的时候用的吧。
    itechify
        9
    itechify  
    PRO
       2021-01-07 21:18:30 +08:00
    @hantsy #8 不是吧,java 不用 Debug 直接 println ?或许这就是大佬吧
    gejun123456
        10
    gejun123456  
       2024-09-08 21:04:01 +08:00
    @monetto #7 本地测试可以用 java8 吗,可以试试 Intellij HotSwaphelper 插件 支持 HotSwapAgent 框架的插件,https://www.bilibili.com/video/BV1cpWUedEbF
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1165 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 17:50 PVG 01:50 LAX 09:50 JFK 12:50
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86