Project: JDT
Bug 129336 [quick assist] Introduce local with casted type does not handle negations correct
Reported: 2006-02-24 09:18:50 | Status: resolved fixed

I20060221-1300 Given: if (!(binding instanceof IVariableBinding)) return false; 1. Cursor on 'instanceof' 2. Ctrl-1 3. Introduce new local with casted type Result: if (!(binding instanceof IVariableBinding)) { IVariableBinding binding= (IVariableBinding)binding; return false; } Expected: if (!(binding instanceof IVariableBinding)) return false; IVariableBinding binding= (IVariableBinding)binding;

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