groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wagenleitner (JIRA)" <>
Subject [jira] [Created] (GROOVY-8648) Compound assignment to attribute fails with ASM error
Date Sat, 16 Jun 2018 18:34:00 GMT
John Wagenleitner created GROOVY-8648:

             Summary: Compound assignment to attribute fails with ASM error
                 Key: GROOVY-8648
             Project: Groovy
          Issue Type: Bug
          Components: class generator
    Affects Versions: 2.5.0, 2.4.14
            Reporter: John Wagenleitner

The following will faile with 2.4.14 and above.
class Account {
    int balance = 0
    void credit(int add) {
        this.@balance += add

def acct = new Account()
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|].

This message was sent by Atlassian JIRA

View raw message