Juan Lopes created GROOVY-11747: ----------------------------------- Summary: Groovt 5 Elvis operator VerifyError Key: GROOVY-11747 URL: https://issues.apache.org/jira/browse/GROOVY-11747 Project: Groovy Issue Type: Bug Affects Versions: 5.0.0 Reporter: Juan Lopes
When upgrading from Groovy 4.0.28 to 5.0.0, I notice that compiling the following code started throwing VerifyError: {code:java} static def test(long x, Long other) {return x ?: other}{code} {{Observed exception:}} {code:java} java.lang.VerifyError: Inconsistent stackmap frames at branch target 23 Exception Details: Location: Script1.test(JLjava/lang/Long;)Ljava/lang/Object; @18: goto Reason: Current frame's stack size doesn't match stackmap.{code} Of course, that code does not make much sense, but a bad refactoring left it like that in my codebase, and after the version upgrade, it broke. -- This message was sent by Atlassian Jira (v8.20.10#820010)