Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2750 rewrite GroovyScriptEngine
  3. GROOVY-2753

GroovyScriptEngine doesn't not update dependent classes in cache, only the root class

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.5
    • 1.7-beta-1
    • None
    • None
    • winxp

    Description

      I have a groovy engine which I construct using this constructor
      new GroovyScriptEngine(pPathRoots, pParentClassLoader);

      My root folder contains a groovy class (let's call it A) which is dependent with other groovy classes (assume a class named B).
      When I recreate class A and use the engine to reload it (using the loadScriptByName method), the engine reloads the new A class but not the new B class.
      As a workaround, each time I change a file I create a new engine, but this really slows things up.
      The same also happened on version 1.5.0.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            nili.guy Nili Guy
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: