You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/11/23 16:15:00 UTC

[jira] [Resolved] (GROOVY-10820) SC: static choice of Class vs Object extension for Type dot name

     [ https://issues.apache.org/jira/browse/GROOVY-10820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles resolved GROOVY-10820.
----------------------------------
    Fix Version/s: 4.0.7
       Resolution: Fixed

> 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
>             Fix For: 4.0.7
>
>
> 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)