Project: JDT
Bug 106409 Sometimes can/can't extract local from assignment.
Reported: 2005-08-08 17:38:47 | Status: verified fixed

If you hilite the paranthesized expression INCLUDING THE PARENTHESES, then it's possible to extract a temporary. But if the same expression is selected EXCLUDING THE PARENTHESES, then Eclipse refuses to extract a temporary. Why do the parantheses decide the eligibility of extracting an assignment expression? ----------------------- Bug.java ---------------- class Bug { { int[]x=new int[5]; int y=1+(x[0]=2+3); } }

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java