Project: JDT
Bug 129504 convert to enhanced for loop breaks on wildcards
Reported: 2006-02-26 17:08:38 | Status: resolved fixed

3.2M5 public class A { void f(List<? extends Number> x){ for (Iterator<? extends Number> iter = x.iterator(); iter.hasNext();) { Number num = iter.next(); //do stuff }} } This gets converted to something that does not compile. Expected: void f(List<? extends Number> x){ for (Number number:x){ Number num = number; //do stuff }} cleanup has the same problem

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ConvertIterableLoopQuickFixTest.java