groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-5311) Wrong line/col info for GStrings
Date Tue, 02 May 2017 02:12:05 GMT

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

Paul King resolved GROOVY-5311.
-------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 3.0)
                   2.6.0-alpha-1

> 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: 2.6.0-alpha-1
>
>
> 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)

Mime
View raw message