Expected behaviour from my point of view it that GroovyScriptEngine should refresh class everytime its source code or source code of any of classes this class references changes. Such behaviour was implemented in 1.6.5. When upgrading to 1.7.0 our test began to fail - class is refreshed only in case of referenced classes source code gets changed, but when I directly change the source of the class I am directly loading, I receive old version - no refresh occurs.
I can prove this by the set of tests that pass on 1.6.5 but fails on 1.7.0. Precisely the proving test is:
Before running tests, please inspect com.fg.scripting.groovy.AbstractGroovyTest#setUp and modify the path.