Message6300
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 |
|
Date |
User |
Action |
Args |
2010-12-24 01:07:48 | pjenvey | set | messageid: <1293152868.26.0.855801269373.issue1670@psf.upfronthosting.co.za> |
2010-12-24 01:07:48 | pjenvey | set | recipients:
+ pjenvey, leosoto, mulleteer |
2010-12-24 01:07:48 | pjenvey | link | issue1670 messages |
2010-12-24 01:07:47 | pjenvey | create | |
|