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] [Closed] (GROOVY-8042) groovyConsole gets confused with a slashy string with an escaped forward slash
Date Tue, 06 Mar 2018 23:26:10 GMT

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

Paul King closed GROOVY-8042.
-----------------------------

> groovyConsole gets confused with a slashy string with an escaped forward slash
> ------------------------------------------------------------------------------
>
>                 Key: GROOVY-8042
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8042
>             Project: Groovy
>          Issue Type: Bug
>          Components: Groovy Console
>    Affects Versions: 2.4.7
>            Reporter: David M. Karr
>            Assignee: John Wagenleitner
>            Priority: Minor
>             Fix For: 2.4.13
>
>
> If I paste or enter the following into groovyConsole:
> --------------
> def escapeSlash = /The character \/ is a forward slash/
> --------------
> What it displays is a little confusing.  It renders in yellow starting at the first forward
slash.  The intention is that this would show the entire expression, including the terminating
forward slash, in yellow.
> What it actually does is terminate the "yellow" at the second forward slash, which is
escaped.
> Fortunately, the expression does execute successfully, but the display makes it seem
to the user that there is a syntax error with the expression.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message