Bug 14607 - Refactor: rename isn't updating references
Summary: Refactor: rename isn't updating references
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P2 major (vote)
Target Milestone: 2.0 F2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-25 09:52 EDT by John P. A. Verhaeg CLA
Modified: 2017-09-20 08:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John P. A. Verhaeg CLA 2002-04-25 09:52:01 EDT
For some reason, my installation of Eclipse is not updating any references when 
I rename anything, from package names down to methods.  Class-related renames 
update everything within that class, but that's all.  This happens to me with 
both the 20020321 stable build and M5.  And, yes, the "Update references to 
renamed element" checkbox is checked.  I even tried unchecking it just in case 
it was just a backward boolean check.  There are several other people in my 
office using the same builds of Eclipse, but they don't experience this 
problem, so I'm assuming this has something to do with a screwed-up setting in 
my .metadata directory.  I've grown very dependent on Eclipse's refactoring 
capabilities, so this is really killing me.  Help!
Comment 1 Adam Kiezun CLA 2002-04-25 12:05:16 EDT
can you try the following for me:
select a type and do 'search for references'?
what do you see? are all references found?
Comment 2 John P. A. Verhaeg CLA 2002-04-25 13:28:22 EDT
I forgot to mention this in the original description, but searching for 
references doesn't work either.  I suspect this is the heart of the refactoring 
problem, too, since refactoring works within the class being modified.
Comment 3 Adam Kiezun CLA 2002-04-26 04:40:43 EDT
moving to jcore for comment
Comment 4 Philipe Mulet CLA 2002-04-26 05:18:34 EDT
Can you provide simple reproduceable steps ? Or provide us with your workspace 
if unable to isolate scenario ?
Comment 5 Philipe Mulet CLA 2002-05-03 03:23:35 EDT
John - any steps to reproduce ? If not there is little we can do for this one 
in particular.
Comment 6 John P. A. Verhaeg CLA 2002-05-03 08:28:15 EDT
No, other than doing anything that involves reference searching.  I tried 
turning on debug statements in Eclipse for searching and indexing via the 
a .options file in the folder containing the eclipse.exe file.  After running 
Eclipse and performing a reference search, the debug statements in the console 
correctly reflect all the classes that reference the type I entered, but I 
still see nothing in the search tab within Eclipse.
Comment 7 Olivier Thomann CLA 2002-05-29 19:38:08 EDT
Do you have anything in the .log file in your .metadata folder?
Comment 8 Philipe Mulet CLA 2002-05-30 08:23:32 EDT
John - Please give it a try with latest F1 or 20020528 build. If it still 
happens, then we will need a workspace for reproducing this problem.
Comment 9 John P. A. Verhaeg CLA 2002-05-30 09:21:52 EDT
In response to Olivier Thomann's question, no, my .log file just contains the 
following:

<?xml version="1.0" encoding="UTF-8"?>
<log>
</log>

I finally gave up on the problem and rebuilt my project, which I figured out 
earlier eliminates the problem regardless of the Eclipse build I'm using.  I 
still have the .metadata directory that reveals the problem if you guys want to 
keep pursuing this, but as far as I'm concerned you can close out this bug.
Comment 10 Philipe Mulet CLA 2002-05-31 05:32:52 EDT
Cannot reproduce. Closing
Comment 11 David Audel CLA 2002-06-03 09:05:00 EDT
Verified.
Comment 12 Manuel Sierra CLA 2017-09-20 08:56:29 EDT
Hi folks,

This is happening to me in Oxygen with a Spring Maven multimodule project.

I have a maven module "jobs-dao" with a Class and when i make a refactor of a methodname then the module jobs-process" that use the dao is not updating the reference name change.