groovy-eclipse
groovy-eclipse copied to clipboard
Fix type inferencing and syntax highlighting for `class` and `metaClass` properties of map-based type
Consider the following:
class M implements Map {
@Delegate Map m= [:]
}
@CompileStatic test(M map) {
map.class
map.metaClass
}
"class" refers to getClass() method and "metaClass" refers to metaClass field (added by compiler) or getMetaClass() method. Highlighting indicates these are map entries (for Groovy < 5).
https://issues.apache.org/jira/browse/GROOVY-11368