Community
Participate
Working Groups
Build ID: 3.3.0 Steps To Reproduce: See the following two little programs: public static void main(String[] args) { int i = 9; i = i++; System.out.println(i); } public static void main(String[] args) { int i = 9; i = ++i; System.out.println(i); } In the first program the assignment has no effect because the increment only happens *after* the assignment. The program will print 9. In the second program, the assignment does have an effect, printing 10. This is all correct. However, Eclipse puts a yellow squiggle under the assignment in the second, not the first program. That's completely the wrong way around (I think). More information:
*** This bug has been marked as a duplicate of bug 228816 ***