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

Code: def Target = "releases$" returns error on line 0 / column 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.4
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None
    • rkleeb@sifsstud4:/tmp$ groovy -v
      Groovy Version: 1.5.4 JVM: 1.6.0-b105

    Description

      rkleeb@sifsstud4:/tmp$ cat bla.groovy
      def Target = "releases$"

      rkleeb@sifsstud4:/tmp$ groovy bla.groovy
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /tmp/bla.groovy: 0: illegal string body character after dollar sign;
      solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 0, column 0.
      1 error

      the error msg that tells you to escape the $ sign makes perfect sense, but the line / col info is always 0 / 0

      Attachments

        1. 2657Patch.zip
          2 kB
          Roshan Dawrani

        Activity

          People

            blackdrag Jochen Theodorou
            rkleeb Reto Kleeb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: