Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 439298
Collapse All | Expand All

(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticFactoryMethodBinding.java (+5 lines)
Lines 36-41 Link Here
36
		for (MethodBinding parameterizedMethod : parameterizedType.methods()) {
36
		for (MethodBinding parameterizedMethod : parameterizedType.methods()) {
37
			if (parameterizedMethod.original() == this.staticFactoryFor)
37
			if (parameterizedMethod.original() == this.staticFactoryFor)
38
				return (ParameterizedMethodBinding) parameterizedMethod;
38
				return (ParameterizedMethodBinding) parameterizedMethod;
39
			if (parameterizedMethod instanceof ProblemMethodBinding) {
40
				MethodBinding closestMatch = ((ProblemMethodBinding)parameterizedMethod).closestMatch;
41
				if (closestMatch != null && closestMatch.original() == this.staticFactoryFor)
42
					return (ParameterizedMethodBinding) closestMatch;
43
			}
39
		}
44
		}
40
		throw new IllegalArgumentException("Type doesn't have its own method?"); //$NON-NLS-1$
45
		throw new IllegalArgumentException("Type doesn't have its own method?"); //$NON-NLS-1$
41
	}
46
	}

Return to bug 439298