I have a difficult question.
My java program does things like this in a loop:
cycle:
read the external file with the compiled java class into the byte [] array.
create a new instance of my own classloader.
setbytes from the read file to this instance of the class loader.
Using the created class loader, create a new instance of the class object from an external file.
call any method of the created object.
And where is the problem.
When I run this program in debug mode, it behaves as I expect, therefore, if the external file has changed the class loader, it loads the new version of the class and executes the new version (if the file has not changed, it also loads the old version, of course) .
, , , .
, - JVM .