I'm storing a long in the properties map of a local database and syncing that with others. In the local database it is returned as a Long which is correct, but when synced to other databases it is returned as a Double. Here's the code I used to verify this, very brief:
Storing on a local database:
properties.put( "test2", System.currentTimeMillis() );
Print on the local database I just stored on:
08-14 09:33:06.260 5957-5957/com.assayrt I/System.out﹕ typeeeeee: java.lang.Long
Same documentId retrieved as the result of a sync and I get this for the type
08-14 09:21:25.130 3572-3631/com.assayrt I/System.out﹕ typeeeeee: java.lang.Double
I'm not sure if this is the desired behavior or not. If not I can file a bug for it, and if so let me know the best strategy for handling this. I have a workaround I can use in the mean time.
Thanks -james