Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-9
-
None
-
None
-
Windows XP, Java 1.4.2_06
Description
The following code:
def foo(double x, y) {
println "x: "+x
println "y: "+y
}
foo(10.0d, 0)
causes Groovy to complain that the value passed to y is the wrong type. Making foo a member function of a class (in another file), and giving it three arguments, the function runs but y is null and the value that should go to y, goes to the third arg. At one point I had it triggering an internal error in the JVM.
Changing double to Double fixes the problem.
Attachments
Attachments
Issue Links
- is duplicated by
-
GROOVY-669 groovyc creates class files that does not verify (java.lang.VerifyError)
- Closed
-
GROOVY-564 Verify error with polymorphic functions
- Closed