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

5.5: Trigger interface initialization on default method invocation

XMLWordPrintable

    • vm

      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.

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

              Created:
              Updated:
              Resolved: