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); |