### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java,v retrieving revision 1.79 diff -u -r1.79 MethodVerifier15.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java 21 Aug 2007 18:55:48 -0000 1.79 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java 11 Sep 2007 18:19:37 -0000 @@ -270,7 +270,10 @@ void checkInheritedMethods(MethodBinding inheritedMethod, MethodBinding otherInheritedMethod) { // sent from checkMethods() to compare 2 inherited methods that are not 'equal' if (inheritedMethod.declaringClass.erasure() == otherInheritedMethod.declaringClass.erasure()) { - if (inheritedMethod.areParameterErasuresEqual(otherInheritedMethod)) { + boolean areDuplicates = inheritedMethod.hasSubstitutedParameters() && otherInheritedMethod.hasSubstitutedParameters() + ? inheritedMethod.areParametersEqual(otherInheritedMethod) + : inheritedMethod.areParameterErasuresEqual(otherInheritedMethod); + if (areDuplicates) { problemReporter().duplicateInheritedMethods(this.type, inheritedMethod, otherInheritedMethod); return; } #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java,v retrieving revision 1.132 diff -u -r1.132 MethodVerifyTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 21 Aug 2007 18:55:52 -0000 1.132 +++ src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 11 Sep 2007 18:19:39 -0000 @@ -7228,6 +7228,20 @@ "----------\n" ); } +//https://bugs.eclipse.org/bugs/show_bug.cgi?id=202830 +public void test120a() { + this.runConformTest( + new String[] { + "Bar.java", + "class Foo {\n" + + " int getThing(V v) { return 1; }\n" + + " boolean getThing(E e) { return true; }\n" + + "}\n" + + "public class Bar extends Foo {}" + }, + "" + ); +} //https://bugs.eclipse.org/bugs/show_bug.cgi?id=173477 public void test121() { this.runConformTest(