You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2020/12/16 01:02:45 UTC
[jira] [Commented] (GROOVY-9859) Groovy3 doesn't parse a function
property when there's a new line between return value and function name
[ https://issues.apache.org/jira/browse/GROOVY-9859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17250034#comment-17250034 ]
Daniel Sun commented on GROOVY-9859:
------------------------------------
backport to 3.0.X later
> Groovy3 doesn't parse a function property when there's a new line between return value and function name
> --------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-9859
> URL: https://issues.apache.org/jira/browse/GROOVY-9859
> Project: Groovy
> Issue Type: Bug
> Reporter: Howard
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 4.0.0-alpha-3
>
>
> The follow code compiles fine on groovy 2, but fails on groovy 3
> {code}
> public synchronized ImmutableMap<String,Pair<String,Double>>
> a(
> List<String> params,
> List<String> columnMapping)
> {
> return null;
> }
> public class Pair<T, U> {}
> public class ImmutableMap<T, U> {}
> {code}
> error msg
> {code}
>
> 1 compilation error:
> Unexpected input: 'public synchronized ImmutableMap<String,Pair<String,Double>> \n' at line: 1, column: 62
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)