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

CompileStatic: VerifierError calling method within findAll closure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.0-rc-3
    • 2.1.0
    • Static compilation
    • None

    Description

      If you comment out the following line (enabling static compilation):

      https://github.com/grails/grails-core/blob/master/grails-aether/src/main/groovy/org/codehaus/groovy/grails/resolve/maven/aether/AetherDependencyManager.groovy#L492

      Then run:

      ./gradlew grails-aether:test

      You will get an error such as:

      org.codehaus.groovy.grails.resolve.maven.AetherDependencyManagerSpec > Test dependencies inherited vs dependencies not inherited FAILED
          java.lang.VerifyError at AetherDependencyManagerSpec.groovy:185
      

      Which is caused by

      java.lang.VerifyError: (class: org/codehaus/groovy/grails/resolve/maven/aether/AetherDependencyManager$_getApplicationDependencies_closure5, method: doCall signature: (Lorg/codehaus/groovy/grails/resolve/Dependency;)Ljava/lang/Object;) Expecting to find integer on stack
      	at org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager.getApplicationDependencies(AetherDependencyManager.groovy:494)
      	at org.codehaus.groovy.grails.resolve.maven.AetherDependencyManagerSpec.Test dependencies inherited vs dependencies not inherited(AetherDependencyManagerSpec.groovy:185)
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: