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

MethodHandle invokespecial fails to call a default interface implementation #538

Open
wasabii opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@wasabii
Copy link
Contributor

wasabii commented Jun 18, 2024

This happens during dynamic compilation when generating a Proxy. The Proxy uses method handles to implement the interface methods. And it uses an invokespecial to call the default implementation. However, only the MethodBuilder is present on RuntimeDefaultInterfaceJavaMethod during dynamic compilation. And this cannot be called.

The same RuntimeDefaultInterfaceJavaMethod implementation is used for dynamic compilation and loading. But it doesn't seem to provide anyway to finalize the actual method builder. Likey we just need to implement the Finish path on it and have the method created and held at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant