Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Ubuntu Linux 6.10, Java SE 6, Groovy 1.0
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
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