commit | db973db56e6f222ce612ab8b9c3d1746b6e89cb9 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan.herrmann@berlin.de> | Tue Apr 26 19:09:46 2016 +0200 |
committer | Stephan Herrmann <stephan.herrmann@berlin.de> | Tue Apr 26 19:09:46 2016 +0200 |
tree | 015acdff83d6414294d611d3456d7c128277ef45 | |
parent | 0570dc879dd6332f01db2af0d197e1105fc3e4c1 [diff] |
Preview of fix for JDT/Core bug 492450
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java index 9bbec53..6a55264 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java
@@ -290,7 +290,7 @@ if (overridden != null) { for (int i = overridden.length; --i >= 0;) { MethodBinding inheritedMethod = overridden[i]; - if (!inheritedMethod.isStatic() && !inheritedMethod.isFinal()) + if (areParametersEqual(currentMethod, inheritedMethod, this.environment) && !inheritedMethod.isStatic() && !inheritedMethod.isFinal()) checkForBridgeMethod(currentMethod, inheritedMethod, allInheritedMethods); } }