| Summary: | [refactoring] [plan] Move of aspect will not update import statements of referenced types inside aj-specific locations | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] AJDT | Reporter: | Andrew Eisenberg <andrew.eisenberg> | ||||
| Component: | Core | Assignee: | AJDT-inbox <AJDT-inbox> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 2.1.0 | ||||||
| Target Milestone: | 2.1.2 | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
It looks like I need to augment the ReferenceFinderUtil class so that references found inside of a type also include references inside of aspect-specific locations. Hmmm...not going to be easy since we don't have bindings available in aspect-specific locations. Attaching a mylyn context so that I can look at this later. Created attachment 177873 [details]
mylyn/context/zip
context
|
example: src/p/Aspect.aj: package p; aspect Aspect { declare parents : Foo extends Bar; } src/p/Foo.java: package p; public class Foo { } src/p/Bar.java: package p; public class Bar { } If Aspect.aj is moved to another package, import statements should be added for Foo and Bar, but they are not. The solution here is a little tricky since the way that JDT calculates this is through an ImportRewrite, which is not something that we generally have access to.