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

compiler does not flag illegal access to abstract superclass method.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      0.9internal
    • CPU:
      sparc
    • OS:
      generic
    • Verification:
      Not verified

      Description

      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();
          }
       
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: