You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/02 02:03:05 UTC

[jira] [Closed] (GROOVY-5311) Wrong line/col info for GStrings

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

Paul King closed GROOVY-5311.
-----------------------------

> Wrong line/col info for GStrings
> --------------------------------
>
>                 Key: GROOVY-5311
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5311
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser-antlr
>            Reporter: Guillaume Delcroix
>            Assignee: Daniel Sun
>            Priority: Minor
>             Fix For: 3.0
>
>
> GStrings have problems with their various sub parts: the constant strings and the variables interpolated.
> With this example:
> {code}
> def gs1 = "-$a-${b}-${->c}-"
> {code}
> The first constant string represents "-$ instead of just the minus sign.
> The second and third constant are -$ instead of just the minus sign again.
> And the last constant is -", instead of just the minus sign, it's going one character too far.
> Now on to the variables.
> Variable a is okay.
> Varible b is actually {b} and I think it should be just b
> And the closure expression is jut right too.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)