Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.2
-
None
Description
Using @CompileStatic in Grails grails.util.PluginBuildSettings class causes this kind of compilation errors:
[Static type checking] - Cannot return value of type [Lorg.codehaus.groovy.grails.io.support.Resource; on method returning type org.codehaus.groovy.grails.io.support.Resource[]
I've tried to isolate the problem, but I didn't succeed. I pushed a branch that has the compile error in it.
reproducing problem:
git clone -b cs-bug-arrays https://github.com/grails/grails-core.git cd grails-core // git fetch && git checkout cs-bug-arrays ./gradlew install -PskipTests -x signArchives -x docs -x javadoc -x gdoc -x groovydoc -x javadocJar -x sourcesJar