{"action":"opened","issue":{"url":"https://api.github.com/repos/magro/testrepo/issues/34","labels_url":"https://api.github.com/repos/magro/testrepo/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/magro/testrepo/issues/34/comments","events_url":"https://api.github.com/repos/magro/testrepo/issues/34/events","html_url":"https://github.com/magro/testrepo/issues/34","id":102667941,"number":34,"title":"msm-javolution-serializer: java.util.Currency gets deserialized with ReflectionFormat","user":{"login":"magro","id":64285,"avatar_url":"https://avatars.githubusercontent.com/u/64285?v=3","gravatar_id":"","url":"https://api.github.com/users/magro","html_url":"https://github.com/magro","followers_url":"https://api.github.com/users/magro/followers","following_url":"https://api.github.com/users/magro/following{/other_user}","gists_url":"https://api.github.com/users/magro/gists{/gist_id}","starred_url":"https://api.github.com/users/magro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magro/subscriptions","organizations_url":"https://api.github.com/users/magro/orgs","repos_url":"https://api.github.com/users/magro/repos","events_url":"https://api.github.com/users/magro/events{/privacy}","received_events_url":"https://api.github.com/users/magro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magro/testrepo/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/magro/testrepo/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/magro/testrepo/labels/Milestone-1.2","name":"Milestone-1.2","color":"FFFFFF"},{"url":"https://api.github.com/repos/magro/testrepo/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-23T22:40:56Z","updated_at":"2015-08-23T22:40:56Z","closed_at":null,"body":"_From [beckmann...@gmail.com](https://code.google.com/u/109934185797393538392/) on February 10, 2010 12:13:00_\n\njava.util.Currency gets serialized and deserialized with the\r\nReflectionFormat which always creates new instances during deserialization.\r\n\r\nThe transient field defaultFractionDigits is then always zero and a\r\ncomparision with equals may return false even if the currencyCode is equal\r\nsince it is just Object.equals(). Only one instance should exist for each\r\ncurrencyCode.\r\n\r\nThis applies to all Versions up to and including 1.2-SNAPSHOT.\r\n\r\nI've added a patch that provides a special XMLFormat for Currency that\r\nresolves the issue.\r\n\r\nThomas\n\n**Attachment:** [0002-added-special-XMLFormat-for-java.util.Currency.patch](http://code.google.com/p/memcached-session-manager/issues/detail?id=34)\n\n_Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=34_"}}