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

GroovyScriptEngine fails to load mutually dependant classes

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.7
    • 1.7-beta-1
    • Templating
    • None

    Description

      consider the following:
      IBar.groovy:

      package test
      
      import test.Foo
      
      public interface IBar{
          public void doStuff(Foo foo);
      }
      

      Foo.groovy:

      package test
      
      import test.IBar;
      
      public class Foo{
          public void doSomeFoo(IBar obj){
              out.print("foo!");
          }
      }
      

      ... both compile file. However, if you use the GroovyScriptEngine to load them, an infinite lookup loop occurs trying to ResolveVisitor (stack trace attached).

      Attachments

        1. stacktrace.txt
          80 kB
          Matthew Corby-Eaglen

        Activity

          People

            blackdrag Jochen Theodorou
            matt.corby Matthew Corby-Eaglen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: