Details
Description
Things like this, while valid Groovy, don't eval in groovysh:
a = [
1,
2,
3
]
Pukes up something like:
groovy:000> a = [ groovy:001> 1, groovy:002> 2, groovy:003> 3 ERROR org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, groovysh_parse: 4: unexpected token: 3 @ line 4, column 1. 3 ^ 1 error
Though this works:
a = [
1,
2,
3,
]
![]()
Activity
Jason Dillon
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
Things like this, while valid Groovy, don't eval in groovysh: {noformat} a = [ 1, 2, 3 ] {noformat} Pukes up something like: {noformat} groovy:000> a = [ groovy:001> 1, groovy:002> 2, groovy:003> 3 ERROR org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, groovysh_parse: 4: unexpected token: 3 @ line 4, column 1. 3 ^ 1 error {noformat} |
Things like this, while valid Groovy, don't eval in groovysh: {noformat} a = [ 1, 2, 3 ] {noformat} Pukes up something like: {noformat} groovy:000> a = [ groovy:001> 1, groovy:002> 2, groovy:003> 3 ERROR org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, groovysh_parse: 4: unexpected token: 3 @ line 4, column 1. 3 ^ 1 error {noformat} Though this works: {noformat} a = [ 1, 2, 3, ] {noformat} :-( |
Guillaume Laforge
made changes -
| Fix Version/s | 1.1-rc-2 [ 13792 ] | |
| Fix Version/s | 1.1-rc-1 [ 13165 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.1-rc-2 [ 13792 ] | |
| Fix Version/s | 1.2 [ 13832 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6 [ 13832 ] | |
| Fix Version/s | 1.7 [ 14014 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.7-beta-x [ 15538 ] | |
| Fix Version/s | 1.7-beta-1 [ 14014 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.8.x [ 15750 ] | |
| Fix Version/s | 1.7.x [ 15538 ] |
blackdrag blackdrag
made changes -
| Assignee | Jason Dillon [ user57 ] |
Cedric Champeau
made changes -
| Labels | contrib |
Jason, in case you've got some spare cycles, you can have a look at it, otherwise I'm scheduling it for 1.7 for the moment.