Christian,
thank you for raising these issues here.
Conflicts caused by renaming have already been addressed
in build #632 (which is currently available).
I very much appreciate any bug reports on name collisions
that IDEA fails to detect.
Our goal for Ariadna is to detect 100% conflicts caused by
renaming (and other refactorings).
As to your particular requests,
Christian Andersson wrote:
> 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".
This will be implemented in #633 (next build).
> Renaming "myOtherMethod" --> "myMethod" should give a warning while the scope and
>usages of "myOtherMethod" intersects with the scope "myMethod".
This is already implemented in #632.
>
> I guess this can be extended to other refactorings as well. Method signature etc.
This is also implemented in #632.
>
> 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.
General policy in IDEA concerning conflicts is such that it warns you
about possible conflicts, but lets you continue the refactoring and
face the consequences (or, of course, cancel). So you will still be able
to "use these effects to save you some work".
>
> /Christian
Friendly,
Dmitry
--
Dmitry Lomov
JetBrains Inc. / IntelliJ Labs
http://www.intellij.com
"Develop with pleasure!"
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features