AnsweredAssumed Answered

SDK3 - HOTSWAP - Doesn't work

Question asked by gawel on Nov 24, 2017
Latest reply on Nov 28, 2017 by gawel

Hi, Hotswap seen doesn't work on any artifact genration :

HOTSWAP AGENT: 15:37:42.619 RELOAD (org.hotswap.agent.config.PluginManager) - Reloading classes [] (autoHotswap)
Exception in thread "Thread-240" java.lang.IllegalStateException: Unable to redefine classes
        at org.hotswap.agent.config.PluginManager.hotswap(
        at org.hotswap.agent.plugin.hotswapper.HotswapperPlugin$1.executeCommand(
Caused by: java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)
        at sun.instrument.InstrumentationImpl.redefineClasses0(Native Method)
        at sun.instrument.InstrumentationImpl.redefineClasses(
        at org.hotswap.agent.config.PluginManager.hotswap(
        ... 2 more


Anywhere, I don't try to create new method or classe, just add new space on java code.


Have you the same bug?