{"action":"created","issue":{"url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization/issues/128","repository_url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization","labels_url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization/issues/128/comments","events_url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization/issues/128/events","html_url":"https://github.com/RuedigerMoeller/fast-serialization/issues/128","id":153927782,"number":128,"title":"Failed correctly deserialize Collections.unmodifiableMap(LinkedHashMap)","user":{"login":"vivimice","id":6984817,"avatar_url":"https://avatars.githubusercontent.com/u/6984817?v=3","gravatar_id":"","url":"https://api.github.com/users/vivimice","html_url":"https://github.com/vivimice","followers_url":"https://api.github.com/users/vivimice/followers","following_url":"https://api.github.com/users/vivimice/following{/other_user}","gists_url":"https://api.github.com/users/vivimice/gists{/gist_id}","starred_url":"https://api.github.com/users/vivimice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivimice/subscriptions","organizations_url":"https://api.github.com/users/vivimice/orgs","repos_url":"https://api.github.com/users/vivimice/repos","events_url":"https://api.github.com/users/vivimice/events{/privacy}","received_events_url":"https://api.github.com/users/vivimice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-10T05:40:19Z","updated_at":"2016-05-17T17:29:39Z","closed_at":null,"body":"```java\r\nMap<String, Integer> m1, m2;\r\n\t\t\r\nm1 = new LinkedHashMap<String, Integer>();\r\nm1.put(\"a\", 1);\r\nm1.put(\"BB\", 1);\r\nm1.put(\"ccc\", 1);\r\nm1 = Collections.unmodifiableMap(m1);\r\n\t\t\r\nSystem.out.println(m1.keySet());\r\n\t\t\r\nFSTConfiguration fstConf = FSTConfiguration.createDefaultConfiguration();\r\nByteArrayOutputStream out = new ByteArrayOutputStream();\r\nfstConf.encodeToStream(out, m1);\r\nm2 = (Map<String, Integer>) fstConf.decodeFromStream(new ByteArrayInputStream(out.toByteArray()));\r\n\r\nSystem.out.println(m2.keySet());\r\n```\r\n\r\nOutput is:\r\n```\r\n[a, BB, ccc]\r\n[BB, a, ccc]\r\n```\r\n\r\nFSTVersion: 2.45\r\n"},"comment":{"url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization/issues/comments/219792536","html_url":"https://github.com/RuedigerMoeller/fast-serialization/issues/128#issuecomment-219792536","issue_url":"https://api.github.com/repos/RuedigerMoeller/fast-serialization/issues/128","id":219792536,"user":{"login":"johnou","id":323497,"avatar_url":"https://avatars.githubusercontent.com/u/323497?v=3","gravatar_id":"","url":"https://api.github.com/users/johnou","html_url":"https://github.com/johnou","followers_url":"https://api.github.com/users/johnou/followers","following_url":"https://api.github.com/users/johnou/following{/other_user}","gists_url":"https://api.github.com/users/johnou/gists{/gist_id}","starred_url":"https://api.github.com/users/johnou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnou/subscriptions","organizations_url":"https://api.github.com/users/johnou/orgs","repos_url":"https://api.github.com/users/johnou/repos","events_url":"https://api.github.com/users/johnou/events{/privacy}","received_events_url":"https://api.github.com/users/johnou/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T17:29:39Z","updated_at":"2016-05-17T17:29:39Z","body":"Yep, we have APIs eg. scoreboards which return a set and the order needs to be maintained but to prevent accidental mutation we wrap it in an unmodifiableSet."}}