Bug 349888 - Problem with rename refactoring
Summary: Problem with rename refactoring
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 2.1.3   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 20:03 EDT by Andrew Eisenberg CLA
Modified: 2011-06-21 17:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg CLA 2011-06-20 20:03:38 EDT
1. create the standard roo pet clinic project using Roo 1.1.4. 
2. Attempt a rename of Pet type/

Exception occurs because some of the references that are found are to the mock methods that contain the Pet type, rather than the ITDs that actually declare them.

Happens on both 3.6 and 3.7 versions of AJDT.
Comment 1 Andrew Eisenberg CLA 2011-06-21 17:53:33 EDT
I have fixed everything here that I am planning on doing for 2.1.3.  The original problem was that search results were returning a method for the ITD (coming from source conversion), rather than the ITD itself.  Then the refactoring engine was getting confused when it couldn't actually be found in the source code.  I have made changes so that when a method or field is asked forand there exists an ITD of the same name, we return the ITD instead.

This uncovered a second problem.  This is more something that I knew was not working, so I am less concerned about it.  The Pet clinic project for Roo 1.1.4 now uses ITITs in several places.  We are not yet able to search inside of ITIT methods.  This will potentially be fixed in AJDT 2.1.4.

Closing this bug.