Issue Details (XML | Word | Printable)

Key: GROOVY-1440
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Lance Shaw
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

println /hello/ results in unexpected token exception

Created: 28/Jul/06 11:45 AM   Updated: 12/Oct/07 06:21 AM   Resolved: 12/Oct/07 06:21 AM
Return to search
Component/s: None
Affects Version/s: 1.1-beta-2
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified

Environment: Windows XP, JVM: 1.4.2_11-b06, Ubuntu 7.04 Feisty Fawn


 Description  « Hide

I tried using slashy strings in the groovyConsole

println /hello/

and was rewarded with the error:

Exception thrown: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script9: 1: unexpected token: null @ line 1, column 16.

I also tried it in groovysh and just was told "statement not complete"

it works if I do this:

println(/hello/)



Russel Winder added a comment - 26/Jul/07 05:11 AM

This problem remains in Groovy r7025 (1.1-beta-3, 2007-07-26). Also:

> groovy -e 'println /hello/'
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unexpected token: null @ line 1, column 16.
1 error

I believe all of these are probably presentations of the same error.


Jochen Theodorou added a comment - 12/Oct/07 06:21 AM

it conflicts with normal division. we can have only one.. either "println a/b" or "println /a/". so I close this as won't fix