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

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

XMLWordPrintable

    • mantis
    • generic
    • solaris_8
    • Verified

      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 $

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: