groovy

Method calls on a separate line should be supported

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-1
  • Fix Version/s: 1.0-JSR-3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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 {

Activity

Hide
Guillaume Laforge added a comment -

This may be an issue for a grammar expert like you

Show
Guillaume Laforge added a comment - This may be an issue for a grammar expert like you
Hide
blackdrag blackdrag added a comment -

closed now

Show
blackdrag blackdrag added a comment - closed now

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: