Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.0
-
None
-
Groovy 1.7.0-all, JDK 1.5, Win
-
Patch
Description
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:
com.fg.scripting.groovy.GroovyScriptingEngineReloadSupportTest#testReloadGroovyClass
Before running tests, please inspect com.fg.scripting.groovy.AbstractGroovyTest#setUp and modify the path.