Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-rc-3
-
None
-
None
Description
Example:
@Grab(group='org.grails', module='grails-bootstrap', version='2.0.4') import grails.util.Metadata import groovy.transform.CompileStatic @CompileStatic def foo() { Metadata m = Metadata.current }
Results in:
[Static type checking] - Cannot assign value of type java.lang.Object to variable of type grails.util.Metadata
at line: 7, column: 4
The class Metadata has a Java static method that looks roughly like:
public static Metadata getCurrent() { ... }
Attachments
Issue Links
- relates to
-
GROOVY-10540 Inconsistent application of and checking for GroovyObject in classgen
- Closed