Issue Details (XML | Word | Printable)

Key: GROOVY-805
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Geert Bevin
Votes: 1
Watchers: 1
Operations

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

Method calls on a separate line should be supported

Created: 06/Apr/05 06:34 AM   Updated: 06/Jul/05 05:04 AM
Component/s: None
Affects Version/s: 1.0-JSR-1
Fix Version/s: 1.0-JSR-3

Time Tracking:
Not Specified


 Description  « Hide
Java constructs like chainable setters or builders are currently not possible with Groovy JSR since method calls can't sit on a separate line. For instance:

someobject
.enterElement("groovy/test_groovy2elementinfo1.groovy")
.setId("ELEMENT1")
.setUrl("/test/element1")
.leaveElement();

A suggested solution would be to eat newlines and whitespaces before . operators, just as for {



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Laforge added a comment - 14/Jun/05 06:57 AM
This may be an issue for a grammar expert like you


Jochen Theodorou added a comment - 06/Jul/05 05:04 AM
closed now