Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.14, 2.5.0
-
None
Description
The following will fail with 2.4.14 and above.
class Account { int balance = 0 void credit(int add) { this.@balance += add } } def acct = new Account() acct.credit(3) assert acct.balance == 3
Fails with the following in 2.5.0
groovy.lang.GroovyRuntimeException: ASM reporting processing error for Account#credit with signature void credit(int)
And this starting in 2.4.14
java.lang.VerifyError: (class: Account, method: credit signature: (I)V) Unable to pop operand off an empty stack
Possibly related to the fixes for GROOVY-8385 and the operand stack not being marked to handle the compound assignment operators.
Issue reported on the dev mailing list.