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

Unable to start dollar slashy strings with an escaped dollar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.6, 1.8.9, 2.3.9
    • 2.4.1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: