groovy
  1. groovy
  2. GROOVY-3620

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Win XP. Ant 1.7.0
    • Testcase included:
      yes
    • Number of attachments :
      1

      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.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: