View | Details | Raw Unified | Return to bug 189933 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java (-2 / +2 lines)
Lines 2091-2097 Link Here
2091
	);
2091
	);
2092
}
2092
}
2093
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=189933
2093
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=189933
2094
public void _test060() {
2094
public void test060() {
2095
	this.runConformTest(
2095
	this.runConformTest(
2096
		new String[] {
2096
		new String[] {
2097
			"X.java",
2097
			"X.java",
Lines 2120-2126 Link Here
2120
}
2120
}
2121
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=189933
2121
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=189933
2122
// variant
2122
// variant
2123
public void _test061() {
2123
public void test061() {
2124
	this.runNegativeTest(
2124
	this.runNegativeTest(
2125
		new String[] {
2125
		new String[] {
2126
			"X.java",
2126
			"X.java",
(-)compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java (-1 / +2 lines)
Lines 2581-2587 Link Here
2581
				if (oneParam.isCompatibleWith(twoParam)) {
2581
				if (oneParam.isCompatibleWith(twoParam)) {
2582
					if (oneParam.leafComponentType().isRawType()) {
2582
					if (oneParam.leafComponentType().isRawType()) {
2583
						// A#RAW is not more specific than a rawified A<T>
2583
						// A#RAW is not more specific than a rawified A<T>
2584
						if (oneParam.needsUncheckedConversion(two.original().parameters[i]))
2584
						TypeBinding toCheck = two.declaringClass.isRawType() ? twoParam : two.original().parameters[i];
2585
						if (oneParam.needsUncheckedConversion(toCheck))
2585
							return false;
2586
							return false;
2586
					}
2587
					}
2587
				} else {
2588
				} else {

Return to bug 189933