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

Compiler thinks equals(Object) is abstract

    XMLWordPrintable

Details

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

    Description



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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: