Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1-beta-1
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu Linux 6.10, Java SE 6, Groovy 1.0
-
Testcase included:yes
-
Number of attachments :
Description
When using a try-finally block in methods with return values then it creates a VerifyError on execution. The following script creates this output:
boolean foo () {
try {
print "try"
return true
}
finally {
print "finally"
}
}
foo ()
Output: eddie@saringnb:~$ groovy test.groovy
Caught: java.lang.VerifyError: (class: test, method: foo signature: ()Z) Expecting to find object/array on stack
The problem doesn't exists when foo would return void.
Thanks in advance,
Stefan
was a little autoboxing issue... fixed