Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: parser
-
Labels:None
-
Environment:all
Description
When parentheses are omitted from a constructor call, the parser gives an UnexpectedTokenException. Additionally, if the comma is omitted it gives an IndexOutOfBoundsException.
Here's an example.
class Car {
String make
String model
Car() {}
Car(String make, String model) {
this.make = make
this.model = model
}
}
c = new Car 'Honda','Odyssey'
println c.dump()
Issue Links
- is depended upon by
-
GROOVY-762
implement syntax improvements
-
just changing to a feature request rather than bug