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

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java (-2 / +2 lines)
Lines 568-574 Link Here
568
		if (isInterface())
568
		if (isInterface())
569
			return false;
569
			return false;
570
		if (isArrayType()
570
		if (isArrayType()
571
				|| isClassLiteral // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
571
			//	|| isClassLiteral // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
572
				|| ((this instanceof ReferenceBinding) && ((ReferenceBinding) this).isFinal())
572
				|| ((this instanceof ReferenceBinding) && ((ReferenceBinding) this).isFinal())
573
				|| (isTypeVariable() && ((TypeVariableBinding)this).superclass().isFinal())) {
573
				|| (isTypeVariable() && ((TypeVariableBinding)this).superclass().isFinal())) {
574
			return !isCompatibleWith(otherType);
574
			return !isCompatibleWith(otherType);
Lines 577-583 Link Here
577
	} else {
577
	} else {
578
		if (isInterface()) {
578
		if (isInterface()) {
579
			if (otherType.isArrayType()
579
			if (otherType.isArrayType()
580
					|| isClassLiteral // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
580
				//	|| isClassLiteral // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
581
					|| ((otherType instanceof ReferenceBinding) && ((ReferenceBinding) otherType).isFinal())
581
					|| ((otherType instanceof ReferenceBinding) && ((ReferenceBinding) otherType).isFinal())
582
					|| (otherType.isTypeVariable() && ((TypeVariableBinding)otherType).superclass().isFinal())) {
582
					|| (otherType.isTypeVariable() && ((TypeVariableBinding)otherType).superclass().isFinal())) {
583
				return !isCompatibleWith(otherType);
583
				return !isCompatibleWith(otherType);
(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest.java (-5 / +5 lines)
Lines 45-51 Link Here
45
		return compilerOptions;
45
		return compilerOptions;
46
	}
46
	}
47
	//https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
47
	//https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
48
	public void test322531a() {
48
	public void _test322531a() {
49
		this.runNegativeTest(
49
		this.runNegativeTest(
50
			new String[] {
50
			new String[] {
51
				"X.java",
51
				"X.java",
Lines 215-221 Link Here
215
			"----------\n");
215
			"----------\n");
216
	}
216
	}
217
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
217
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
218
	public void test322531g() {
218
	public void _test322531g() {
219
		this.runNegativeTest(
219
		this.runNegativeTest(
220
			new String[] {
220
			new String[] {
221
				"X.java",
221
				"X.java",
Lines 240-246 Link Here
240
			"----------\n");
240
			"----------\n");
241
	}
241
	}
242
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
242
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
243
	public void test322531h() {
243
	public void _test322531h() {
244
		this.runNegativeTest(
244
		this.runNegativeTest(
245
			new String[] {
245
			new String[] {
246
				"X.java",
246
				"X.java",
Lines 333-339 Link Here
333
			"----------\n");
333
			"----------\n");
334
	}
334
	}
335
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
335
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=322531
336
	public void test322531j() {
336
	public void _test322531j() {
337
		this.runNegativeTest(
337
		this.runNegativeTest(
338
			new String[] {
338
			new String[] {
339
				"X.java",
339
				"X.java",
Lines 515-521 Link Here
515
		"----------\n");
515
		"----------\n");
516
}
516
}
517
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=330869
517
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=330869
518
public void _test330869() {
518
public void test330869() {
519
    this.runConformTest(
519
    this.runConformTest(
520
            new String[] {
520
            new String[] {
521
                    "X.java",
521
                    "X.java",

Return to bug 330869