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

5.5: Do not guard superinterface initialization on state of superclass

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • specification
    • vm

      Step 7 of the initialization process in 5.5 states (emphasis mine):

      "Next, if C is a class rather than an interface, *and its superclass has not yet been initialized*, then let SC be its superclass and let SI1, ..., SIn be all superinterfaces of C (whether direct or indirect) that declare at least one non-abstract, non-static method."

      In the case in which the superclass has been initialized but a superinterface has not, this is incorrect. The superinterface should be initialized anyway.

            abuckley Alex Buckley
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: