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

5.5: Trigger interface initialization on default method invocation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u40
    • Component/s: specification
    • Labels:
    • Subcomponent:
      vm

      Description

      When a default method is invoked, the static fields of the declaring interface should be initialized. This condition should be added to the list of circumstances in which initialization can occur.

      This condition should _not_ trigger initialization of any superinterfaces or subinterfaces -- only the interface that declares the method.

      Note that default methods can be accessed through a variety of paths -- invokevirtual, invokeinterface, invokespecial, and MethodHandles.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: