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

Allow a Python callable to be passed to a Java method/field which expects a functional interface #1206

Open
mhsmith opened this issue Jul 6, 2024 · 0 comments

Comments

@mhsmith
Copy link
Member

mhsmith commented Jul 6, 2024

The reverse (making a functional interface callable in Python) is already implemented.

If the Java type is an interface (as opposed to an abstract class), then we can implement this with a dynamic proxy. The conversion should only succeed if the Python object is callable().

JEP discussion: ninia/jep#67

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

No branches or pull requests

1 participant