Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Templating
-
Labels:None
-
Number of attachments :
Description
The SimpleTemplateEngine got a problem with escaping quotes inside GStrings.
"this" is tricky: ${hello + " " + hello}
will be parsed to
out.print("\"this\" is tricky: ${hello + \" \" + hello}");
which is a problem for the current lexer as a GString must be a valid groovy statement.
Issue Links
- is depended upon by
-
GROOVY-980
SimpleTemplateEngine fails when enclose expression dosn't immediately evaluate to a String
-
Activity
Thomas Heller
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | patch.txt [ 11904 ] |
Guillaume Laforge
made changes -
| Assignee | Sam Pullara [ spullara ] |
Niall Gallagher
made changes -
| Attachment | test.tar.gz [ 13238 ] |
Niall Gallagher
made changes -
| Attachment | test-closure.tar.gz [ 13250 ] |
Guillaume Laforge
made changes -
| Assignee | Sam Pullara [ spullara ] | Christian Stein [ sormuras ] |
Guillaume Laforge
made changes -
| Component/s | Groovlet - Template [ 11660 ] |
Christian Stein
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Christian Stein
made changes -
| Link |
This issue is depended upon by |
Christian Stein
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
Guillaume Laforge
made changes -
| Component/s | Templating [ 13413 ] | |
| Component/s | Groovlet / GSP [ 11660 ] |
Paul King
made changes -
| Assignee | Christian Stein [ sormuras ] |
Guillaume Laforge
made changes -
| Description |
The SimpleTemplateEngine got a problem with escaping quotes inside GStrings. "this" is tricky: ${hello + " " + hello} will be parsed to out.print("\"this\" is tricky: ${hello + \" \" + hello}"); which is a problem for the current lexer as a GString must be a valid groovy statement. |
The SimpleTemplateEngine got a problem with escaping quotes inside GStrings.
{code} "this" is tricky: ${hello + " " + hello} {code} will be parsed to {code} out.print("\"this\" is tricky: ${hello + \" \" + hello}"); {code} which is a problem for the current lexer as a GString must be a valid groovy statement. |
blackdrag blackdrag
made changes -
| Parent | GROOVY-2503 [ 61571 ] | |
| Issue Type | Bug [ 1 ] | Sub-task [ 7 ] |
blackdrag blackdrag
made changes -
| Parent | GROOVY-2503 [ 61571 ] | |
| Issue Type | Sub-task [ 7 ] | Bug [ 1 ] |
patch diff to be applied from groovy/groovy-core