[ 
https://issues.apache.org/jira/browse/GROOVY-10820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631969#comment-17631969
 ] 

Eric Milles edited comment on GROOVY-10820 at 11/23/22 4:08 PM:
----------------------------------------------------------------

https://github.com/apache/groovy/commit/7bf356afad7c3f4c28edc2395ad54a7e7e633b84
https://github.com/apache/groovy/commit/3d9a26563411e0431ca02016102366169c435196


was (Author: emilles):
https://github.com/apache/groovy/commit/7bf356afad7c3f4c28edc2395ad54a7e7e633b84

> SC: static choice of Class vs Object extension for Type dot name
> ----------------------------------------------------------------
>
>                 Key: GROOVY-10820
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10820
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>
> Consider the following:
> {code:groovy}
> @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)
> }
> {code}
> Static compiler is writing direct invoke of Object (or CharSequence for 
> {{isCase}}) variants of examples above.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to