hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Map with Date as key fails Hawk.get

Open rabbitom opened this issue 8 years ago • 1 comments

Map<Date,Integer> map;
map.put(new Date(), 1);
Hawk.put("map", map);//true
Hawk.get("map");//null

See whole project here

Please try to fill all questions below before submitting an issue.

  • [ ] On which android versions do you have this issue? :6.0.1
  • [ ] On which phones do you have this issue? :Nexus5
  • [ ] Which hawk version are you using? :2.0.1
  • [ ] Does this issue happen always or is it flaky? :always
  • [ ] Can you write failing test? I wrote a project to reproduce this issue, but I'm not sure what does "test" mean here, sorry.
  • [ ] If it is Hawk.put and Hawk.get issue, can you write down which data you were trying to save and get it back? data of class Map<Date,Integer>
  • [ ] Is the data you are trying to save it huge or small? small

rabbitom avatar Feb 25 '17 09:02 rabbitom

👍 Let me check this one and thanks for detailed issue. Amazing.

orhanobut avatar Apr 02 '18 08:04 orhanobut