Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v --- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 28 Nov 2006 16:47:46 -0000 1.293 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 30 Nov 2006 09:04:23 -0000 @@ -771,13 +771,8 @@ return ParameterizedMethodBinding.instantiateGetClass(receiverType, exactMethod, this); } // targeting a generic method could find an exact match with variable return type - if (exactMethod.typeVariables != Binding.NO_TYPE_VARIABLES || invocationSite.genericTypeArguments() != null) { - MethodBinding compatibleMethod = computeCompatibleMethod(exactMethod, argumentTypes, invocationSite); - // compatibleMethod should not be null thanks to the conditions guarding this block - if (!compatibleMethod.isValidBinding() && exactMethod.typeVariables != Binding.NO_TYPE_VARIABLES) { - return null; // could be a better generic method match (90423), which will be found by non exact match - } - exactMethod = compatibleMethod; + if (invocationSite.genericTypeArguments() != null) { + exactMethod = computeCompatibleMethod(exactMethod, argumentTypes, invocationSite); } return exactMethod; }