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

Exception in phase 'class generation'

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment