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 2020/09/21 17:16:00 UTC

[jira] [Assigned] (GROOVY-9463) STC: no type check error for invalid method pointer or reference

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

Eric Milles reassigned GROOVY-9463:
-----------------------------------

    Assignee: Eric Milles

> STC: no type check error for invalid method pointer or reference
> ----------------------------------------------------------------
>
>                 Key: GROOVY-9463
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9463
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>
> Consider the following:
> {code:groovy}
> @groovy.transform.TypeChecked
> void test() {
>   def closure = String.&toLowerCaseX
>   java.util.function.Function<String,String> reference = String::toLowerCaseX
> }
> {code}
> Neither of these misspellings result in a compiler error.  Also no metadata is saved in the AST to understand what method is being referenced if the names are fixed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)