Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3980

GroovyScriptingEngine doesn't recognize changes in the source of checked class only when dependencies got changed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.1, 1.8-beta-1
    • Component/s: class generator
    • Labels:
      None
    • Environment:
      Groovy 1.7.0-all, JDK 1.5, Win
    • Flags:
      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.

        Attachments

        1. v2_3980_v17x_Patch.txt
          2 kB
          Roshan Dawrani
        2. 3980_v17x_Patch.txt
          3 kB
          Roshan Dawrani
        3. lib_groovy-1.7.0.zip
          48 kB
          Jan Novotný
        4. patch-GroovyScriptEngine.patch
          0.6 kB
          Jan Novotný

          Activity

            People

            • Assignee:
              roshandawrani Roshan Dawrani
              Reporter:
              novoj Jan Novotný
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified