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 2015/06/25 13:29:04 UTC
[jira] [Resolved] (GROOVY-7377) Interpolated variable followed by
asterisk in slashy-string causes compiler error
[ https://issues.apache.org/jira/browse/GROOVY-7377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-7377.
-------------------------------
Resolution: Fixed
Assignee: Paul King
Fix Version/s: 2.4.4
> Interpolated variable followed by asterisk in slashy-string causes compiler error
> ---------------------------------------------------------------------------------
>
> Key: GROOVY-7377
> URL: https://issues.apache.org/jira/browse/GROOVY-7377
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 2.4.3
> Environment: Windows 7 via gvm
> Java 1.8_40
> Reporter: Martin Neal
> Assignee: Paul King
> Priority: Minor
> Fix For: 2.4.4
>
>
> {code}
> @Test
> void slashyStringWithInterpolatedVariableFollowedByAsterisk() {
> // currently throws org.codehaus.groovy.control.MultipleCompilationErrorsException
> assert Eval.me('''def foo='bar'; /$foo*baz/''') == 'bar*baz'
> assert Eval.me('''def foo='bar'; /${foo}*baz/''') == 'bar*baz'
> assert Eval.me('''def foo='bar'; /$foo\u002abaz/''') == 'bar*baz'
> assert Eval.me('''def foo='bar'; /${foo}\u002abaz/''') == 'bar*baz'
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)