Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.5, 2.0.6
-
None
Description
Not sure how to reproduce this in a smaller example, but if I uncomment the @CompileStatic from this line of code:
I get the exception:
(class: org/codehaus/groovy/grails/resolve/DependencyManagerConfigurer, method: createIvyDependencyManager signature: (Lgrails/util/BuildSettings;)Lorg/codehaus/groovy/grails/resolve/IvyDependencyManager;) Expecting to find object/array on stack java.lang.VerifyError: (class: org/codehaus/groovy/grails/resolve/DependencyManagerConfigurer, method: createIvyDependencyManager signature: (Lgrails/util/BuildSettings;)Lorg/codehaus/groovy/grails/resolve/IvyDependencyManager;) Expecting to find object/array on stack at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:1224) at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1169) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1065) at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1047)
Possible related, in the same class if I uncomment the @CompileStatic on line:
I get a compilation error:
[ant:groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [ant:groovyc] General error during class generation: size==0 [ant:groovyc] [ant:groovyc] java.lang.ArrayIndexOutOfBoundsException: size==0 [ant:groovyc] at org.codehaus.groovy.classgen.asm.OperandStack.doConvertAndCast(OperandStac [ant:groovyc] k.java:312) [ant:groovyc] at org.codehaus.groovy.classgen.asm.OperandStack.doGroovyCast(OperandStack.java:296) [ant:groovyc] at org.codehaus.groovy.classg [ant:groovyc] en.asm.sc.StaticInvocationWriter.loadArguments(StaticInvocationWriter.java:251) [ant:groovyc] at org.codehaus.groovy.classgen.asm.InvocationW [ant:groovyc] riter.writeDirectMethodCall(InvocationWriter.java:130) [ant:groovyc] at org.codehaus.groovy.classgen.asm.sc.StaticInvocationWriter.writeDirec [ant:groovyc] tMethodCall(StaticInvocationWriter.java:185) [ant:groovyc] at org.codehaus.groovy.classgen.asm.InvocationWriter.makeCall(InvocationWriter.jav [ant:groovyc] a:223)