Long values cannot be sent as a number over JSON, because JavaScript only support smaller numbers. If you only need Double or Integer precision, then declare that in your autobean, and you can be sure that JSON will pass those values correctly. GWT automatically allows you to create values as strings and will interpret them as long values, but won't let you make the mistake of trying to store long values in a way that will lose data.
To prove this to yourself, try looking at very large numbers in Javascript, like running alert(a111111111111111111) to see the lost precision as it converts to a double, or trying 1 << 30 and 1<< 40, and seeing that the values don't keep going up, but wrap around. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VEWFO0Rgm10J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.