Yanna commented on Improvement MIFOSX-329

John, Keith, my gson version is 2.2.2, and it keeps converting integer to double.

It throws exceptions when executing - final Long officeId = Long.valueOf(officeIdObj.toString());
officeIdObj turns out to be 1.0. When I cast it to Double, it is Ok. So is it the gson version problem, or something else about my environment?

stack trace:
java.lang.NumberFormatException: For input string: "1.0"
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Long.parseLong(Long.java:419)
java.lang.Long.valueOf(Long.java:525)
org.mifosplatform.commands.service.AuditReadPlatformServiceImpl.retrieveAuditEntry(AuditReadPlatformServiceImpl.java:213)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to