Affects Version/s: 1.5.4
1.5.4 JVM: 10.0-b19
Replicated in other environments, but this is my environment.
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
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:
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.