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

Regression in 3.0.5 for accessing static constants in closures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.5
    • 2.5.14, 3.0.6
    • None
    • None

    Description

      Up to 3.0.4 (including 2.x) it worked perfectly fine.
      Starting with 3.0.5 it does not work anymore.

      This is one of the classes where this is happening:

      https://github.com/Vampire/spock/blob/issue-1177/spock-specs/mock-integration/src/test/groovy/MockingIntegrationSpec.groovy

      It works fine if I use Groovy 3.0.4 and it fails with a MissingPropertyException as soon as I switcht to 3.0.5.

      Attachments

        1. image-2020-07-28-00-00-37-055.png
          12 kB
          Björn Kautler

        Activity

          People

            emilles Eric Milles
            vampire Björn Kautler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: