Message6300

Author pjenvey
Recipients leosoto, mulleteer, pjenvey
Date 2010-12-24.01:07:47
SpamBayes Score 1.5422779e-06
Marked as misclassified No
Message-id <1293152868.26.0.855801269373.issue1670@psf.upfronthosting.co.za>
In-reply-to
Content
The problem here is Decimal's __tojava__ method does not handle the case of __tojava__(Double.class). We could fix that in Decimal but what would be better (in this respect) is having Decimal.__tojava__ fallback to super.__tojava__ when it doesn't know how to handle the conversion.

This would fix the problem because PyObject.__tojava__ will try conversion to Double.class via __float__.

We would have to expose __tojava__ on the object class for that fix though (it currently is not exposed to Python code). I'm not sure that's so good either
History
Date User Action Args
2010-12-24 01:07:48pjenveysetmessageid: <1293152868.26.0.855801269373.issue1670@psf.upfronthosting.co.za>
2010-12-24 01:07:48pjenveysetrecipients: + pjenvey, leosoto, mulleteer
2010-12-24 01:07:48pjenveylinkissue1670 messages
2010-12-24 01:07:47pjenveycreate