Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4275601

Compiler thinks equals(Object) is abstract

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.3.0
    • tools
    • kestrel
    • generic
    • generic



      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)
      ======================================================================

            wmaddoxsunw William Maddox (Inactive)
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: