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

Eric Milles updated GROOVY-9463:
--------------------------------
    Fix Version/s: 2.5.19

> 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
>             Fix For: 4.0.0-alpha-1, 3.0.6, 2.5.19
>
>
> 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.20.10#820010)

Reply via email to