[ https://issues.apache.org/jira/browse/GROOVY-11181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles resolved GROOVY-11181. ---------------------------------- Fix Version/s: 5.0.0-alpha-11 Resolution: Fixed https://github.com/apache/groovy/commit/6c31727fb733758af2fc61d4b512be75c9370f39 > Improve STC error message for non-functional interface > ------------------------------------------------------ > > Key: GROOVY-11181 > URL: https://issues.apache.org/jira/browse/GROOVY-11181 > Project: Groovy > Issue Type: Improvement > Components: Static Type Checker > Affects Versions: 4.0.15 > Reporter: Christopher Smith > Assignee: Eric Milles > Priority: Minor > Fix For: 5.0.0-alpha-11 > > > When the STC decides that a method reference is being provided for a type > that is not a functional interface, it prints the error > {code} > The argument is a method reference, but the parameter type is not a > functional interface > {code} > without specifying what it believes the parameter type _is_. It would be > helpful for troubleshooting to identify the parameter type. > https://github.com/groovy/groovy-eclipse/blob/c2999392e161037435c9479bdb2f71f70a3c0f8b/base/org.codehaus.groovy40/src/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java#L3665 -- This message was sent by Atlassian Jira (v8.20.10#820010)