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

Multiple problems with @CompileStatic and abstract inheritance

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.1.0-rc-2, 2.0.7
    • Component/s: Static compilation
    • Labels:
      None

      Description

      if you checkout https://github.com/grails/grails-core/tree/list-plugins-fix

      and run ./gradlew install
      then use that as your Grails install and if you do:

      grails create-app foo
      cd foo
      grails compile
      

      You will get:

      (class: org/codehaus/groovy/grails/resolve/maven/aether/AetherDependencyManager, method: super$1$resolve signature: ()Lorg/codehaus/groovy/grails/resolve/DependencyReport;) Illegal use of nonvirtual function call
      java.lang.VerifyError: (class: org/codehaus/groovy/grails/resolve/maven/aether/AetherDependencyManager, method: super$1$resolve signature: ()Lorg/codehaus/groovy/grails/resolve/DependencyReport;) Illegal use of nonvirtual function call
      

      if you open up AbstractDependencyManager and uncomment the @CompileStatic

      run ./gradlew install again

      you will get the strange compilation error:

      [ant:groovyc] /Developer/grails-dev/grails-master/grails-aethe
      [ant:groovyc] r/src/main/groovy/org/codehaus/groovy/grails/resolve/maven/aether/AetherDependencyManager.groovy: -1: You are not allowed to ove
      [ant:groovyc] rride the final method pfaccess$0() from class 'org.codehaus.groovy.grails.resolve.AbstractDependencyManager'.
      [ant:groovyc]  @ line -1, colum
      [ant:groovyc] n -1.
      [ant:groovyc] 1 error
      

        Attachments

          Activity

            People

            • Assignee:
              melix Cédric Champeau
              Reporter:
              graemerocher Graeme Rocher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: