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

Double-quoted string containing just a backslash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0-beta-5
    • 1.0-beta-8
    • parser
    • None

    Description

      It's impossible to build a double-quoted string containing just one backslash. Here's the output you get when you try it on groovysh:

      1> print "
      "
      discarding invalid text:
      groovysh script: 1: unterminated string literal
      print "
      "
      ^

      Attachments

        Activity

          People

            Unassigned Unassigned
            gpiancastelli Giulio Piancastelli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: