Project: JDT
Bug 243179 [quick fix] "Change type" uses "? extends Number" as variable type in generic enhanced for loop
Reported: 2008-08-05 11:27:35 | Status: resolved fixed

Build ID: I20080617-2000 (3.4.0) Steps To Reproduce: Please apply the quickfix, and see the illegal result. ---------------------- Bug.java --------------------- import java.util.*; class Bug { { ArrayList<Number>list=new ArrayList(); HashSet<Short>set=new HashSet(); for(AbstractCollection<Number>bunch:Arrays.asList(list,set)); } }

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