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

compiler improperly complains about an interface "overriding" final Object meth.

    XMLWordPrintable

Details

    • mantis
    • generic
    • solaris_8
    • Verified

    Description

      This is copied from 4053725.


      frog:~/workspaces/test/4053725 $ cat -n T.java
           1 interface J {
           2 void notify();
           3 }
      frog:~/workspaces/test/4053725 $ newjavac T.java
      T.java:2: notify() in J cannot override notify() in java.lang.Object; overridden method is final
              void notify();
                   ^
      1 error
      frog:~/workspaces/test/4053725 $

      Attachments

        Issue Links

          Activity

            People

              gafter Neal Gafter
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: