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

Exception in phase 'class generation'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.0.7, 2.1.1
    • Component/s: Static compilation
    • Labels:
      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

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              ddimitrov Dimitar Dimitrov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: