When refactoring a class name, Eclipse lately shows a very strange behavior. For example, let\'s look at one of our classes:
public class CampaignCSVPanel ex
I found the problem: The project is using svn tags like $Date: $
When I remove them, the problem disappears. When I re-insert them manually (to make sure I don't insert invalid characters), the problem re-appears.
I experimented a little more, and the problem also disappears, when I switch the SVN connector from JavaHL to SVNKit.
Try this:
Go to Windows -> Preferences -> Java and uncheck 'Rename in editor without dialogue'
(I'm looking at the recent release of Eclipse Indigo, I only assume the settings are the same on previous versions)
Now you can preview all of the changes it intends to make.
If you can do this and verify in that dialogue that it is doing some crazy replacements, then you should most definitely file a bug with Eclipse and provide the reproducible example. I would bet though, that once you look at the list of things it intends to replace you'll find some other explanation for the problem.
That's annoying. Obviously the refactoring engine knows that it has to replace something but replaces characters at a wrong position... - no answer but some additional ideas/tests