Community
Participate
Working Groups
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.
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.