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

VerifyError at CompileStatic

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.6, 2.4.0-beta-3
    • 2.3.8
    • Static compilation
    • None

    Description

      import groovy.transform.CompileStatic
      
      @CompileStatic
      class Test {
          static void test() {
              def map = [:]
              println(map[0] ?: (map[0] = 1))
          }
      }
      
      Test.test()
      
      Caught: java.lang.VerifyError: (class: Test, method: test signature: ()V) Inconsistent stack height 3 != 2
      java.lang.VerifyError: (class: Test, method: test signature: ()V) Inconsistent stack height 3 != 2
              at test.run(test.groovy:11)
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            melix Cédric Champeau
            yukoba Yu Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment