[ https://issues.apache.org/jira/browse/GROOVY-7377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581791#comment-14581791 ]
ASF GitHub Bot commented on GROOVY-7377: ---------------------------------------- GitHub user paulk-asert opened a pull request: https://github.com/apache/incubator-groovy/pull/40 GROOVY-7377: Interpolated variable followed by asterisk in slashy-str… …ing causes compiler error You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/incubator-groovy groovy7377 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-groovy/pull/40.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #40 ---- commit ff6917d65ec726119addca93ae8602e86039527f Author: Paul King <pa...@asert.com.au> Date: 2015-06-11T10:26:00Z GROOVY-7377: Interpolated variable followed by asterisk in slashy-string causes compiler error ---- > 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 > Priority: Minor > > {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)