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

Inner class causes VerifierError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 3.0.0-rc-1
    • None
    • None

    Description

      Steps to reproduce:

      git clone git@github.com:grails-plugins/grails-resources.git
      cd grails-resources
      git checkout 0de76b489d83e43e6411cceaf28ff31d04620831
      ./grailsw test-app ResourceTagLibIntegTests
      

      Exception:

      | Failure:  testStashOfACustomTypeWithMultipleEntries(org.grails.plugin.resource.ResourceTagLibIntegTests)
      |  java.lang.VerifyError: (class: org/grails/plugin/resource/ResourceTagLibIntegTests$FakeStashWriter, method: setInterceptor signature: (Lorg/codehaus/groovy/grails/test/support/GrailsTestInterceptor;)V) Incompatible object argument for function call
      	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
      	at java.lang.Class.getDeclaredConstructors(Class.java:1891)
      	at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
      	at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
      	at org.grails.plugin.resource.ResourceTagLibIntegTests.testStashOfACustomTypeWithMultipleEntries(ResourceTagLibIntegTests.groovy:231)
      	a
      

      The way I had to fix it was moving the inner class out of the outer class:

      https://github.com/grails-plugins/grails-resources/commit/cd0e434b6dbc871dac11c34337561cbed956b200#diff-9222340082e4e1253d5a0d4ea60ddcd7L244

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: