I'm having a lot of troubles with creating a BigDecimal object on the client side and send it to the server via RPC. When I read the toString or toPlainString method of BigDecimal on the server side, it always returns 0. On the client side, the toPlainString methods returns the correct value, but toString still returns 0.
BigDecimal d = new BigDecimal("1.2345");
GWT.log("Test: " + d.toString()); // 0
GWT.log("Test: " + d.toPlainString()); // 1.2345, OK!
As far as I can see, the BigDecimal should be supported, but I have not been able to create one on the client side and send to the server side successfully. (Reading them from server side, is no problem as long as I use the toPlainString method.)
Any suggestions? Thanks
EDIT: or asked in another way: has anyone been able to construct a BigDecimal on the client and send it to the server successfully?