Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-9
-
Fix Version/s: 1.0-JSR-6
-
Component/s: None
-
Labels:None
-
Environment:Windows XP
-
Number of attachments :
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}"
fixed