Use doubleValue() and then cast to int. All JavaScript numbers (and therefore all JSONNumbers) are really doubles.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of seven.reeds Sent: Tuesday, September 30, 2008 16:43 To: Google Web Toolkit Subject: JSONNumber getValue() and ints Hi I am using Eclipse 3.4.1, java 1.6.0_07, gwt 1.5.2 under linux. I have a JSON object that contains an integer value. I am trying the following to get it: int rowCount = index.Info.get("RowCount").isNumber().getValue().intValue(); Eclipse tells me the getValue() for JSONNumber is depreciated Is there a better way? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
