Project: JDT
Bug 102018 [refactoring] Assertion fails in ExtractTempRefactoring.
Reported: 2005-06-28 10:25:50 | Status: verified fixed

Steps: 1) Hilite all of the System...getKey() expression. 2) Pick menu item Refactor>>Extract Local Variable. 3) Press Ok. The wizard then warns of a duplicate local variable. 4) Press Back. 5) Change suggested variable name from 'key' to 'foo'. 6) Press Ok. Assertion then fails. ------------------------ Bug.java ---------------- class Bug { { System.getenv().entrySet().iterator().next().getKey(); String key; } }

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