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   Resolved: 06/Jul/05 03:43 AM
Return to search
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 {



Guillaume Laforge made changes - 14/Jun/05 06:57 AM
Field Original Value New Value
Assignee Jeremy Rayner [ jez ]
Guillaume Laforge added a comment - 14/Jun/05 06:57 AM

This may be an issue for a grammar expert like you


Guillaume Laforge made changes - 15/Jun/05 04:54 AM
Fix Version/s 1.0-JSR-2 [ 11517 ]
Fix Version/s 1.0-JSR-3 [ 11518 ]
Jochen Theodorou made changes - 06/Jul/05 03:35 AM
Assignee Jeremy Rayner [ jez ] Jochen Theodorou [ blackdrag ]

Jochen Theodorou made changes - 06/Jul/05 03:43 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Jochen Theodorou added a comment - 06/Jul/05 05:04 AM

closed now


Jochen Theodorou made changes - 06/Jul/05 05:04 AM
Status Resolved [ 5 ] Closed [ 6 ]