Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.9
-
None
-
None
Description
This:
@Newify foo() { def x = Integer.new(42) } foo()
Fails with:
Caught: groovy.lang.MissingMethodException: No signature of method: newifyBug.Integer() is applicable for argument types: (java.lang.Integer) values: [44]
groovy.lang.MissingMethodException: No signature of method: newifyBug.Integer() is applicable for argument types: (java.lang.Integer) values: [44]
at newifyBug.foo(newifyBug.groovy:6)
at newifyBug.run(newifyBug.groovy:9)
source: http://groovy.329449.n5.nabble.com/Potential-problem-with-Newify-td5717385.html