View | Details | Raw Unified | Return to bug 270194
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java (-1 / +1 lines)
Lines 834-840 Link Here
834
				if (compatibleMethod != null) {
834
				if (compatibleMethod != null) {
835
					if (compatibleMethod.isValidBinding()) {
835
					if (compatibleMethod.isValidBinding()) {
836
						if (concreteMatch != null && concreteMatch.declaringClass.findSuperTypeOriginatingFrom(compatibleMethod.declaringClass) != null)
836
						if (concreteMatch != null && concreteMatch.declaringClass.findSuperTypeOriginatingFrom(compatibleMethod.declaringClass) != null)
837
							if (environment().methodVerifier().isParameterSubsignature(concreteMatch, compatibleMethod))
837
							if (environment().methodVerifier().isParameterSubsignature(concreteMatch.original(), compatibleMethod.original()))
838
								continue; // can skip this method since concreteMatch overrides it
838
								continue; // can skip this method since concreteMatch overrides it
839
						if (candidatesCount == 0) {
839
						if (candidatesCount == 0) {
840
							candidates = new MethodBinding[foundSize - startFoundSize + 1];
840
							candidates = new MethodBinding[foundSize - startFoundSize + 1];
(-)src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java (+19 lines)
Lines 3206-3209 Link Here
3206
		"----------\n"
3206
		"----------\n"
3207
	);
3207
	);
3208
}
3208
}
3209
3210
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=270194
3211
public void test077() {
3212
	this.runConformTest(
3213
		new String[] {
3214
			"X.java",
3215
			"abstract class X implements I {\n" +
3216
			"	public <A extends J<A, D>, D extends J<A, D>> A method(A arg) { return null; }\n" +
3217
			"	void test(Y<String> c) { method(c); }\n" +
3218
			"}\n" +
3219
			"interface I {\n" +
3220
			"	<A extends J<A,D>, D extends J<A,D>> A method(A arg);\n" +
3221
			"}\n" +
3222
			"interface J<A extends J<A,D>, D extends J<A,D>> {}\n" +
3223
			"class Y<E> implements J<Y<E>, Y<E>> {}"
3224
		},
3225
		""
3226
	);
3227
}
3209
}
3228
}

Return to bug 270194