I am using IntelliJ IDEA Community Edition 16 Preview (version IC-144.4199.23). I need to rename a couple Enum entries using IDEA's Refactoring system.
For instance, I currently have an enum entry named black
, and I need to rename it and its usages to BLACK
, which I do by Right-clicking the entry, selecting Refactor -> Rename...
, and entering BLACK
.
The problem is that IDEA prompts me with the Looking for Usages
progress dialog, freezes the dialog, and never actually refactors the entry name.
This issue is pretty odd, because when I use Find Usages
on the entry directly, it perfectly says that there is "No usages found in Project Files" (which is normal). However, the aforementioned dialog freezes at a roughly 99% progress bar in searching for occurrences, and does not proceed in renaming the entry.
Edit: Issue also applies to IntelliJ IDEA 15.0.2, apparently.