Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle default methods in proxied interfaces #250

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jun 14, 2021

  1. Use handles to dispath default methods

    Default methods on interfaces fed to java.lang.Proxy cannot be
    invoked without using method handles, which requires a Lookup with
    private access (acquired within the interface class). This commit
    adds a load path that propagates such a Lookup through to the
    eventual Proxy instance, allowing it to skip binding default
    methods to their (nonexistent) native function, instead calling
    the provided default method body.
    
    Fixes jnr#249.
    headius committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    78f5cf3 View commit details
    Browse the repository at this point in the history
  2. Test for default methods on interface

    See jnr#249.
    headius committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    db01751 View commit details
    Browse the repository at this point in the history