Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-9
-
None
-
None
-
Windows XP
Description
The default constructor in class Point gives rise to the
following error:
Caught: groovy.lang.MissingMethodException: No signature of method
Point.doCall() is applicable for argument types: (java.lang.Integer, java.lang.Integer)
values: [0, 0]
class Point {
Point(x, y)
{ this.x = x this.y = y }Point()
{ this(0, 0) // PROBLEM HERE }// ---------- properties ----------------------------------
x
y
}
pp = new Point(1, 2)
qq = new Point()
println "pp: ${pp.x} ${pp.y}"
println "qq: ${qq.x} ${qq.y}"