Rename action for classes and interfaces broken in #8582

Renaming a class or interface renames the type declaration, the source file, and asks for variable names to be renamed. Unfortunately, the action does not reliably rename type references for non-trivial cases. (I am not yet sure if this is only broken if there was an earlier exception, though.)

4 comments
Comment actions Permalink

Hello Thomas,

Renaming a class or interface renames the type declaration, the source
file, and asks for variable names to be renamed. Unfortunately, the
action does not reliably rename type references for
non-trivial cases.


Could you please give an example of such case?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Given

renaming Foo to Baz yielded

This happened with mulitple projects (in multiple frames) open at once and IDEA having thrown an exception earlier.

I had to restart IDEA to make renaming work again, but I have also to admit, that I was not able to reproduce the problem since. Sorry.

0
Comment actions Permalink

Hello Thomas,

Given

 }
> class Bar {
> Foo foo;
> }]]>

renaming Foo to Baz yielded

 }
> 
> class Bar {
> Foo foo;
> }]]>

This happened with mulitple projects (in multiple frames)
open at once and IDEA having thrown an exception earlier.
I had to restart IDEA to make renaming work again, but I have also to
admit, that I was not able to reproduce the problem since. Sorry.


Works fine for me. Please, try to clean IDEA caches and restart.

Alexander.


0

Please sign in to leave a comment.