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

Lambda: Support Private concrete methods in interfaces

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: hs25
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b53

      Backports

        Description

        Per the lambda spec, hotspot now allows non-abstract instance methods in interfaces.
        Public concrete instance methods are called default methods.
        For JDK8, we will also support private instance methods in bytecodes.

        8006267 added support for invokestatic and invokespecial to call interface methods.
        Note that at the moment, private interface methods need to be ACC_SYNTHETIC and are not supported
        by javac, so any test requires bytecode patching.


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                acorn Karen Kinnear (Inactive)
                Reporter:
                acorn Karen Kinnear (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: