Add an option flag to Groovy Console that specifies whether a new classloader should be used upon each run of the script.
Currently, a console window's classloader persists class loads across runs. This can cause unintended results when experimenting with meta-programming. For example, if I run this script twice from Groovy Console:
The output is:
The method added to the String's meta-class was "remembered" between successive executions due to the classloader being reused. I would rather the console would forget and allow the output be consistent for each run.