+1 "Christian Andersson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > > When renaming a variable (or other class member) Idea shows you the occurencies in a find window. > It would be nice if Idea could (loudly or very clear) warn me if there will be any name clashes when renaming. > > For example: > > public String myMethod() { > int myVariable = 0; > int myOtherVariable = 1; > > System.out.println("Values: " + myVariable + ", " + myOtherVariable); > System.out.println("Method result: " + myOtherMethod()); > } > > Renaming "myVariable" --> "myOtherVariable" should give a warning while the scope and usages of "myVariable" intersects with the scope of "myOtherVariable". > Renaming "myOtherMethod" --> "myMethod" should give a warning while the scope and usages of "myOtherMethod" intersects with the scope "myMethod". > > I guess this can be extended to other refactorings as well. Method signature etc. > > I've encountered these clashes from time to time and it would be nice to be able to rely on the refactorings to not infer errors. > When renaming in small projects this is not a problem to me, I've actually used the effects to save me some work. I can, however, not think this is a wanted effect. > > /Christian
_______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
