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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java (-2 / +7 lines)
Lines 91-98 Link Here
91
			}
91
			}
92
		}
92
		}
93
93
94
		if (concreteMethod.declaringClass.erasure().findSuperTypeWithSameErasure(originalInherited.declaringClass) == null)
94
		if (concreteMethod.declaringClass.erasure().findSuperTypeWithSameErasure(originalInherited.declaringClass) == null) {
95
			this.type.addSyntheticBridgeMethod(originalInherited, concreteMethod.original());
95
			if (originalInherited.declaringClass.isInterface()) {
96
				if (!this.type.superclass.implementsInterface(originalInherited.declaringClass, true)) {
97
					this.type.addSyntheticBridgeMethod(originalInherited, concreteMethod.original());
98
				}
99
			}
100
		}
96
	}
101
	}
97
}
102
}
98
void checkForBridgeMethod(MethodBinding currentMethod, MethodBinding inheritedMethod, MethodBinding[] allInheritedMethods) {
103
void checkForBridgeMethod(MethodBinding currentMethod, MethodBinding inheritedMethod, MethodBinding[] allInheritedMethods) {

Return to bug 159973