__tojava__ bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

__tojava__ bug

brianray
I posted this bug to the database http://bugs.jython.org/issue2181

Was anyone will to confirm they are seeing the same issue?

I am having problems casting to a user defined type from what is returned from __tojava__. Don't know where to go from here. New to embedding Jython.

Thanks

--
Brian Ray 
@brianray
(773) 669-7717

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|

Re: __tojava__ bug

Jeff Emanuel
__tojava__ is most likely failing and returning Py.NoConversion, which is a PySingleton.

I suspect it is because your Example class in your python code does not implement your java interface:

try something like this:

from
com.brianray.embedded_jython import ExampleType
class Example(ExampleType):
# etc...



On 7/28/2014 11:29 AM, Brian Ray wrote:
I posted this bug to the database http://bugs.jython.org/issue2181

Was anyone will to confirm they are seeing the same issue?

I am having problems casting to a user defined type from what is returned from __tojava__. Don't know where to go from here. New to embedding Jython.

Thanks

--
Brian Ray 
@brianray
(773) 669-7717


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk


_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users