Skip to content

Commit 8ae5b82

Browse files
committed
Revert "Do not emit restriction warning on inherited method (eclipse-jdt#4293)"
This reverts commit 545483d as it caused regression in eclipse-jdt#4553 Fixes eclipse-jdt#4553
1 parent 545483d commit 8ae5b82

3 files changed

Lines changed: 143 additions & 172 deletions

File tree

org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/MessageSend.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,10 +1002,7 @@ public TypeBinding resolveType(BlockScope scope) {
10021002
}
10031003
// abstract private methods cannot occur nor abstract static............
10041004
}
1005-
TypeBinding declared = this.binding.declaringClass.erasure();
1006-
TypeBinding actual = this.actualReceiverType.erasure();
1007-
boolean isExplicitUse = TypeBinding.equalsEquals( declared, actual);
1008-
if (isMethodUseDeprecated(this.binding, scope, isExplicitUse, this))
1005+
if (isMethodUseDeprecated(this.binding, scope, true, this))
10091006
scope.problemReporter().deprecatedMethod(this.binding, this);
10101007

10111008
TypeBinding returnType;

0 commit comments

Comments
 (0)