Project: JDT
Bug 104021 [quick fix] Introduce new local with casted type applied more than once
Reported: 2005-07-15 11:00:25 | Status: resolved fixed

3.1 "Introduce new local with casted type" can be applied more than once resulting in compile errors. Starting with: class Foo { void bar(Object o) { if (o instanceof String) { } } } applying it twice results in: class Foo { void bar(Object o) { if (o instanceof String) { String string= (String) o; String string= (String) o; } } }

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java