Closed freemo closed 6 years ago
this issue is actually unrelated to the post or predecrement itself. Instead the issue is that the system wasnt correctly parsing a "ifge" or similar bytecode conditional if it was reached outside of a composite if. This can be nduced by the conditional on a line by itself or as part of an if statement with an empty block. Regardless this has been fixed now.
calling ++var or --var throws an exception on code gen. However the post forms such as var-- work just fine.
This bug is demonstrated in the following unit test: https://github.com/Syncleus/aparapi/blob/master/src/test/java/com/aparapi/codegen/test/ContinueTortureTest.java
in that unit test if converted to a post decrement it works fine. As is it produces the following exception: