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

Variables from a static import scope used in GStrings resolve to null under certain conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.2
    • 2.0-beta-3, 1.8.7
    • None
    • None

    Description

      I would expect "$logDir/foo.txt" to be "foo/foo.txt", since I just assigned logDir; however, this doesn't happen. I do not understand why this happens.

      Currently, the 2nd and 3rd assertions fail (comment out the 2nd to see the third fail)

      Attachments

        1. StaticContainer.groovy
          0.0 kB
          David Greenberg
        2. MinCase.groovy
          0.3 kB
          David Greenberg

        Activity

          People

            paulk Paul King
            dgrnbrg David Greenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: