/** * 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] * * Author: K Barclay * JDK: J2SE 1.4 * Groovy: 1.0-beta-9 * Platform: WindowsXP */ 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}"