Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6.2
-
None
-
None
-
Windows XP, JDK 1.6; same error occurs at http://groovyconsole.appspot.com/
Description
I get an error when I try to print an "newified" object:
@Newify foo() {
assert 42 == Integer.new(42)
println (Integer.new(42))
}
foo()
Exception thrown: No signature of method: static java.lang.Integer.new() is applicable for argument types: (java.lang.Integer) values: [42]
groovy.lang.MissingMethodException: No signature of method: static java.lang.Integer.new() is applicable for argument types: (java.lang.Integer) values: [42]
at ConsoleScript0.foo(ConsoleScript0:3)
at ConsoleScript0$foo.callCurrent(Unknown Source)
at ConsoleScript0.run(ConsoleScript0:6)