Message5994

Author denis.rangel
Recipients denis.rangel, zyasoft
Date 2010-08-20.19:00:57
SpamBayes Score 1.3633775e-05
Marked as misclassified No
Message-id <AANLkTi=daPJaRZow-PmV2W7wVrOpwpp-Foz-X-KP38FN@mail.gmail.com>
In-reply-to <1282329307.7.0.850068151037.issue1646@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
Files
File name Uploaded
unnamed denis.rangel, 2010-08-20.19:00:56
History
Date User Action Args
2010-08-20 19:00:57denis.rangelsetrecipients: + denis.rangel, zyasoft
2010-08-20 19:00:57denis.rangellinkissue1646 messages
2010-08-20 19:00:57denis.rangelcreate