Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect logic with ReflectionUtils.getAllFields() method - wrong order of fields #73
Recently I've stumbled an interesting issue - if you save some data into database file and load it later on the same Android OS version (read same JVM) everything works as expected. But if you load that .db file on another Android OS version, data can't be loaded, lots of crashes.
I've made some research on this issue and found root cause - your logic in
So, I think logic of using
pushed a commit
Sep 13, 2015
@Stuart-campbell , as I understood form your commit 6e4609a you specified this behavior only for JSON serialization/deserialization purposes ? Or I misunderstood?
The key to that commit is the change in Subproject commit number.
All fields can now be order alphabetically into the database not just json. I only added it to the json for consistency, I understand an ordered json is pretty useless.
Here is a link to the changes that should fix your issue be making the order of getAllFields the same regardless of device Stuart-campbell/RushCore@70dbe6e