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

oaki segv's when invoking an abstract method

XMLWordPrintable

    • 1.0alpha
    • sparc
    • solaris_2.4
    • 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();
          }
       
      }

      This is partly a compiler problem, it should not allow this
      invokation. But the interpreter should not SEGV.

            fyellinsunw Frank Yellin (Inactive)
            ahoffsunw Arthur Hoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: