Hi Jim,

   The problem is when you turn your python object (PyObject) but using the Invocable.getInterface (PyObject, Class.class). It returns a java.lang.reflect.Proxy, if you want to get the PyObject original from the Proxy fails.

Ex:
PyObject py = Py.tojava(proxy);
System.out.println(py); // Proxty$18

On Fri, Aug 20, 2010 at 3:35 PM, Jim Baker <report@bugs.jython.org> wrote:

Jim Baker <zyasoft@users.sourceforge.net> added the comment:

I don't understand the problem raised here. Are you referring to the functionality supported by Py#java2py and Py#tojava (or PyObject#__tojava__, which is often overridden)?

You may want to look at the Java Book chapter on Java Integration, see http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html

----------
nosy: +zyasoft

_______________________________________
Jython tracker <report@bugs.jython.org>
<http://bugs.jython.org/issue1646>
_______________________________________



--
Atenciosamente
---------------------------------------------------
Denis Guedes Rangel