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

compiler does not flag illegal access to abstract superclass method.

XMLWordPrintable

    • 0.9internal
    • sparc
    • generic
    • Not verified

      oakc will compile the following code. When it is run it causes the
      interpreter to SEGV. I am not sure if the situation is detectable at
      sompile time or not,. This bug may have to be refiled againats the
      interpreter.

       
      class AbstractBugClass {
       
          abstract int read();
      }
       
      class BugClass extends AbstractBugClass {
       
          public int read() {
              return super.read();
          }
       
          public static void main(String args[]) {
              BugClass b = new BugClass();
              b.read();
          }
       
      }

            ahoffsunw Arthur Hoff (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: