I would like to dynamically change code during runtime but keep the same class name.
Currently the way it seems to work is that this line of code:
aClass = CompilerUtils.CACHED_COMPILER.loadFromJava(className1, javaCode);
will compile the code when it runs the first time.
The 2nd time it won't compile, it will returned the compiled class from cash instead (even if the input String javaCode is different.
Can I somehow force that every time I call that line of code it will re-compile?
Thanks a bunch
-H
I would like to dynamically change code during runtime but keep the same class name.
Currently the way it seems to work is that this line of code:
aClass = CompilerUtils.CACHED_COMPILER.loadFromJava(className1, javaCode);
will compile the code when it runs the first time.
The 2nd time it won't compile, it will returned the compiled class from cash instead (even if the input String javaCode is different.
Can I somehow force that every time I call that line of code it will re-compile?
Thanks a bunch
-H