Name: skT88420 Date: 09/25/99
Compiling this file results in 1 error saying equals (Object) is abstract.
Clue: equals(Object) is declared in interface Collection.
However, if you change "extends AbstractCollection" to
"implements Collection" bug does not occur.
import java.util.*;
public abstract class AbstractTypedSet
extends AbstractCollection
{
public boolean eqData (Object x) {
return super.equals (x);
}
}
(Review ID: 95730)
======================================================================
- relates to
-
JDK-4758654 incorrect overload resolution for super.method() when inherited abstract
- Resolved