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

Exception in phase 'class generation'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.0.7, 2.1.1
    • Static compilation
    • None

    Description

      @groovy.transform.CompileStatic
      class Test {
          public static void main(String[] args) {
              def fieldMatcher = '[x=1] [a=b] [foo=bar]' =~ ~"\\[([^=\\[]+)=([^\\]]+)\\]"
              assert fieldMatcher
              def pairs = fieldMatcher.collect { it[1..2] }
          }
      }
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            ddimitrov Dimitar Dimitrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: