You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using hotswap agent with great success but when I change a staticfinal field in a class I get this exception:
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.hotswap.agent.plugin.jvm.ClassInitPlugin$2.executeCommand(ClassInitPlugin.java:130)
at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:43)
Caused by: java.lang.IllegalAccessError: Update to static final field de.ikoffice.app.primaform.control.PrimaformOvertimeManager.overtimeAbsence3 attempted from a different method ($$ha$clinit) than the initializer method <clinit>
at de.ikoffice.app.primaform.control.PrimaformOvertimeManager.$$ha$clinit(Unknown Source)
... 6 more
This wasn't an issue with JRebel, but the reason for this is probably that they unfinal all the fields automatically. Is there anything I can do except for removing the final modifier during development? Thanks in advance.
It seems like removing the final modifiers for a class during reload is a possible solution.
The text was updated successfully, but these errors were encountered:
Hello,
I am using hotswap agent with great success but when I change a
static
final
field in a class I get this exception:This wasn't an issue with JRebel, but the reason for this is probably that they unfinal all the fields automatically. Is there anything I can do except for removing the
final
modifier during development? Thanks in advance.It seems like removing the final modifiers for a class during reload is a possible solution.
The text was updated successfully, but these errors were encountered: