| Summary: | [refactoring] [plan] More refactorings that do not work in an AJ compilation unit | ||
|---|---|---|---|
| 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: | |||
|
Description
Andrew Eisenberg
It looks like most refactorings grab their dom AST through the RefactoringASTProvider. JDT Weaving can capture calls to that class and ensure that a proper AST is created when the target compilation unit is an AJCU. Convert local variable to field is now working. As described in c1, I now weave around RefactoringASTParser.parseWithASTProvider() (the previous comment used the wrong class name). I am about to commit the fix as well as regression tests. Unfortunately, the other broken refactorings are not affected by this change. The best solution for these may be to simply disable them in AJ editors. |