Community
Participate
Working Groups
When extracting a local variable from a bit of code, the side-effects of that code (such as the presence of the ++ operator) are not taken into account during the refactor process. When you have a number of statements such as rs.getInt(cur_col++); in a method, and select one to extract a local variable from it, all the instances are replaced with the name of the variable. This changes the meaning of the code (because the ++ doesn't happen on every statement anymore) and so isn't really a refactor at all. Please feel free to ask if you want a more concrete example. Some info from Eclipse's Help->About screen: Eclipse SDK Version: 3.2.1 Build id: M20060921-0945
*** This bug has been marked as a duplicate of bug 27740 ***