Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.4
-
None
-
None
Description
Cannot use increment operator on static variables when prefixed by class name. For instance (++counter) works fine but (++ClassName.counter) does not. This is a runtime, not compile time issue.
The exception that is reported is:
java.lang.VerifyError: (class: StaticIncrementBug, method: main signature: ([Ljava/lang/String;)V) Unable to pop operand off an empty stack.
It looks like incorrect byte code which is corrupting the stack. That's just a guess, I don't know enough about groovy internals to fix it.