Message5994
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>
> _______________________________________
> |
File name |
Uploaded |
unnamed
|
denis.rangel,
2010-08-20.19:00:56
|
|
Date |
User |
Action |
Args |
2010-08-20 19:00:57 | denis.rangel | set | recipients:
+ denis.rangel, zyasoft |
2010-08-20 19:00:57 | denis.rangel | link | issue1646 messages |
2010-08-20 19:00:57 | denis.rangel | create | |
|