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

Unable to start dollar slashy strings with an escaped dollar

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.6, 1.8.9, 2.3.9
    • Fix Version/s: 2.4.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu via apt (1.8.6)
      Built-In with Jenkins on Ubuntu (1.8.9)
      Ubuntu via GVM (2.3.9)

      Description

      If a dollar slashy string starts with an escaped dollar e.g.

      println($/$$VAR='Hello World'/$)
      

      You'll receive the exception:

      Caught: groovy.lang.MissingPropertyException: No such property: VAR for class: ...
      

      The only way round this is to add a space to separate the first $ from the slash.

      println($/ $$VAR='Hello World'/$)
      

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              martiuk Martin Kemp
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: