Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Consider the following:
@groovy.transform.CompileStatic void test() { String.getMetaClass() // should refer to getMetaClass(Class) String.metaClass {} // should refer to metaClass(Class,Closure) String.isCase(null) // should refer to isCase(Class) }
Static compiler is writing direct invoke of Object (or CharSequence for isCase) variants of examples above.
Attachments
Issue Links
- is related to
-
GROOVY-4097 MOP implementation does not handle method calls in relation with class objects properly!
- Closed
-
GROOVY-7204 Static type checking and compilation fail when multiple generics in use
- Closed
-
GROOVY-10819 Meta class registry corruption leads to stack overflow
- Closed
- relates to
-
GROOVY-10939 Non-static method java.lang.Object#hashCode cannot be called from static context
- Closed
-
GROOVY-11195 STC: false positive for Class method called from static context
- Closed