문제

I have json coming from server and representing pojos. When i deserialize to json using AutoBean some works some dont! I figure out that those which cant be deserialize has BigDecimal getters/setters.

Error:

TypeError: Cannot read property 'length' of undefined at java_math_BigDecimal_$initFrom__Ljava_math_BigDecimal_2Ljava_lang_String_2

How to handle BigDecimal into GWT while deserializing with AutoBean?

ps:

the nested question is this one

도움이 되었습니까?

해결책

AutoBean expects BigDecimal as strings in the JSON payload.

We discussed it at http://gwt-code-reviews.appspot.com/1601805/
Feel free to file an issue though, the decision was not a "no" but rather a "not now".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top