I'm building a persistence tester to test if the data I'm trying to persist is correct the process is something like this:
- Store data in variable var1;
- Persist data in variable var1 to a coherence cache;
- Read the data stored in cache and store it in variable var2;
- Compare var1 with var2 and check if the values match;
The test may or may not be correct. I've been fixing some bugs but the persisted data is always the same in both var1 and var2.
The values have always matched despite of the type (Integer, Long, Double, Boolean, Class, Object, etc...). However, when persisting and reading a Date, the value in milliseconds is different. The comparison works fine, it's not the problem.
Is there any bug regarding the serialization/deserialization/persistence of Date objects? I hope you can help me.
Thanks