Open ThexXTURBOXx opened 2 years ago
Replacing classes while allowing all kinds of changes is not possible. You can only invalidate a whole class loader and have to make sure each plugin has its own class loader and that there are no references to any class instances anywhere anymore.
Whe developing plugins, I noticed the following behavior:
Here, I would expect that the plugin gets cooked again and "replaced" such that the new behavior is executed. However, this is not the case right now. My suspicion is that Janino does not "replace" the classes inside the current
ClassLoader
. I spent around 2 hours trying to fix this, but did not succeed. If someone is able to do it, that would be great! :)