Message6292

Author pjenvey
Recipients nriley, otmarhumbel, pjenvey, zyasoft
Date 2010-12-22.20:55:27
SpamBayes Score 3.80331e-06
Marked as misclassified No
Message-id <1293051327.89.0.572581721407.issue1681@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-12-22 20:55:27pjenveysetmessageid: <1293051327.89.0.572581721407.issue1681@psf.upfronthosting.co.za>
2010-12-22 20:55:27pjenveysetrecipients: + pjenvey, otmarhumbel, zyasoft, nriley
2010-12-22 20:55:27pjenveylinkissue1681 messages
2010-12-22 20:55:27pjenveycreate