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

instance initialization blocks in GroovyTestCase are not compiled as part of groovy build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7-beta-1
    • 2.2.0
    • None
    • None
    • Win XP. Ant 1.7.0

    Description

      Instance initialization blocks within a GroovyTestCase are not being compiled when the test case is part of the groovy build. This happens from Ant but not from the IDE or outside the groovy Ant Build.

      The attached test case (in patch) will execute and pass in the IDE but fails as part of the ant build. To invoke it do:
      ant test -DtestCase=groovy.InitailizationBlockTest

      Looking at the javap output for the compiled class, the instance initialization block seems to be totally missing.

      I have no idea where to starting looking into this. Sorry.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: