| Summary: | Extract local variable refactoring in an aspect complains about non-existant problems | ||
|---|---|---|---|
| Product: | [Tools] AJDT | Reporter: | Andrew Eisenberg <andrew.eisenberg> |
| Component: | Core | Assignee: | Andrew Eisenberg <andrew.eisenberg> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.1.0 | ||
| Target Milestone: | 2.1.1 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Extract method appears to work. The easiest fix here would be to call ExtractTempRefactoring.setCheckResultForCompileProblems(false). This would have to be done through weaving. Fixed. |
Simple aspect. Select '9 + 8' and perform 'Extract Local' refactoring. public aspect ExtractLocal { void x() { int x = 9 + 8; } } Numerous refactoring problems are found. This is because validation is proceeding off of the actual source code, not the transformed source code. See ExtractTempRefactoring.checkFinalConditions() line 498.