[java] fix unary operators on array items (a[0]++)
Merge pull request #2440 from nadako/array_unop_fix

[java] fix unary operators on array items (a[0]++)