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

compiler fails to flag an enum abstract

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b56
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      enum A implements I {
          toto {
              public void m() {
              }
          }
      }

      interface I {
          void m();
      }

      A.java:1: A is not abstract and does not override abstract method m() in I
      enum A implements I {
      ^

        Attachments

          Activity

            People

            • Assignee:
              gafter Neal Gafter
              Reporter:
              gafter Neal Gafter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: