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

regex with / and \ causes compilation error on 1.5.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.5.1
    • 1.5.2
    • None
    • None
    • win xp sp2, also see below

    Description

      C:\>groovy -v
      Groovy Version: 1.5.1 JVM: 1.5.0_13-b05

      C:\>groovy -e "'foo/bar' =~ /\/|
      /"
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unexpected
      char: '\' @ line 1, column 19.
      1 error

      C:\>programs\Java\Groovy1.0\bin\groovy -v
      Groovy Version: 1.0 JVM: 1.5.0_13-b05

      C:\>programs\Java\Groovy1.0\bin\groovy -e "'foo/bar' =~ /\/|
      /"

      C:\>

      Attachments

        Activity

          People

            paulk Paul King
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: