Lines 25-30
Link Here
|
25 |
import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; |
25 |
import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; |
26 |
import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; |
26 |
import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; |
27 |
import org.eclipse.jdt.internal.compiler.lookup.TypeConstants; |
27 |
import org.eclipse.jdt.internal.compiler.lookup.TypeConstants; |
|
|
28 |
import org.eclipse.jdt.internal.compiler.lookup.WildcardBinding; |
28 |
|
29 |
|
29 |
public class ForeachStatement extends Statement { |
30 |
public class ForeachStatement extends Statement { |
30 |
|
31 |
|
Lines 180-186
Link Here
|
180 |
case GENERIC_ITERABLE : |
181 |
case GENERIC_ITERABLE : |
181 |
collection.generateCode(scope, codeStream, true); |
182 |
collection.generateCode(scope, codeStream, true); |
182 |
// declaringClass.iterator(); |
183 |
// declaringClass.iterator(); |
183 |
final TypeBinding collectionTypeBinding = collection.resolvedType; |
184 |
TypeBinding collectionTypeBinding = collection.resolvedType; |
|
|
185 |
if (collectionTypeBinding.isWildcard()) { |
186 |
WildcardBinding wildcardBinding = (WildcardBinding) collectionTypeBinding; |
187 |
collectionTypeBinding = wildcardBinding.bound; |
188 |
} |
184 |
MethodBinding iteratorMethodBinding = |
189 |
MethodBinding iteratorMethodBinding = |
185 |
new MethodBinding( |
190 |
new MethodBinding( |
186 |
AccPublic, |
191 |
AccPublic, |