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 (-3 / +5 lines)
Lines 90-98 Link Here
90
				}
90
				}
91
			}
91
			}
92
		}
92
		}
93
93
		// check whether bridge method is already defined above for interface methods
94
		if (concreteMethod.declaringClass.erasure().findSuperTypeWithSameErasure(originalInherited.declaringClass) == null)
94
		if (originalInherited.declaringClass.isInterface()
95
			this.type.addSyntheticBridgeMethod(originalInherited, concreteMethod.original());
95
					&& this.type.superclass.erasure().findSuperTypeWithSameErasure(originalInherited.declaringClass) == null) {
96
				this.type.addSyntheticBridgeMethod(originalInherited, concreteMethod.original());
97
		}
96
	}
98
	}
97
}
99
}
98
void checkForBridgeMethod(MethodBinding currentMethod, MethodBinding inheritedMethod, MethodBinding[] allInheritedMethods) {
100
void checkForBridgeMethod(MethodBinding currentMethod, MethodBinding inheritedMethod, MethodBinding[] allInheritedMethods) {

Return to bug 159973