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

Referring to a class name in Groovy to another Groovy class thats not yet been turned into bytecode causes a compile error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-1
    • class generator, parser
    • None

    Description

      If you do uncomment the 'todo' text in groovy.gdo.Person test so that the Person is used as an expression, then do

      maven clean test

      the test will fail.

      This is due to the Person class not being found at the time the PersonTest is being compiled.

      We need to have an interim step which once we've created the AST will spot class names as variables and expand them as ClassExpressions using the AST as well as the classpath

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: