bcdev / jpy

A bi-directional Python-Java bridge used to embed Java in CPython or the other way round.
Apache License 2.0
187 stars 37 forks source link

Allow Python objects to be passed as parameters to Python methods #148

Open Dr-Irv opened 6 years ago

Dr-Irv commented 6 years ago

There is a bug that if you pass a proxied object into a Python method, then Python can't get the right object. So this PR fixes that issue and adds a test for it.

This PR Includes the fix for #147 .

Dr-Irv commented 6 years ago

Latest commit supports returning an object that supports an interface. So this allows you to have an interface of the form

public interface IVector {
    IVector add(IVector other);
}