Message6292
The problem here lies in PyScriptEngineScope.__setitem__. All values that pass through it are first converted via value.__tojava__(Object.class)
In this case, the __tojava__ call is made on the user defined MyPythonCallable class. Its __tojava__ returns its Proxy object here, which is the cause of the havoc we're seeing
I'm not sure who's at fault -- Nick, what's the point of the __tojava__(Object.class) call here? Is it necessary in all cases?
We either need to add special cases to the scope__setitem__, or fix the __tojava__ result for user defined classes that have an underlying proxy. Might the latter break anything else? |
|
Date |
User |
Action |
Args |
2010-12-22 20:55:27 | pjenvey | set | messageid: <1293051327.89.0.572581721407.issue1681@psf.upfronthosting.co.za> |
2010-12-22 20:55:27 | pjenvey | set | recipients:
+ pjenvey, otmarhumbel, zyasoft, nriley |
2010-12-22 20:55:27 | pjenvey | link | issue1681 messages |
2010-12-22 20:55:27 | pjenvey | create | |
|