{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-module-scala/issues/184","labels_url":"https://api.github.com/repos/FasterXML/jackson-module-scala/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-module-scala/issues/184/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-module-scala/issues/184/events","html_url":"https://github.com/FasterXML/jackson-module-scala/issues/184","id":55756809,"number":184,"title":"Deserialization of a HashMap wrapped into an Option","user":{"login":"david-bouyssie","id":6719996,"avatar_url":"https://avatars.githubusercontent.com/u/6719996?v=3","gravatar_id":"","url":"https://api.github.com/users/david-bouyssie","html_url":"https://github.com/david-bouyssie","followers_url":"https://api.github.com/users/david-bouyssie/followers","following_url":"https://api.github.com/users/david-bouyssie/following{/other_user}","gists_url":"https://api.github.com/users/david-bouyssie/gists{/gist_id}","starred_url":"https://api.github.com/users/david-bouyssie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-bouyssie/subscriptions","organizations_url":"https://api.github.com/users/david-bouyssie/orgs","repos_url":"https://api.github.com/users/david-bouyssie/repos","events_url":"https://api.github.com/users/david-bouyssie/events{/privacy}","received_events_url":"https://api.github.com/users/david-bouyssie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-28T13:38:19Z","updated_at":"2015-01-28T16:02:17Z","closed_at":null,"body":"I have a simple case class with this kind of defintion:\r\n\r\n````\r\ncase class Dummy(\r\n  @JsonDeserialize( contentAs = classOf[scala.collection.immutable.HashMap[Long,Long]])\r\n  countByDay: Option[scala.collection.immutable.HashMap[Long,Long]] = None\r\n)\r\n````\r\n\r\nWhen I try to access the keys of countByDay the following exception is thrown:\r\njava.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long\r\n\r\nAm I wrong with the @JsonDeserialize annotation or this a current limitation of the scala module ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-module-scala/issues/comments/71860116","html_url":"https://github.com/FasterXML/jackson-module-scala/issues/184#issuecomment-71860116","issue_url":"https://api.github.com/repos/FasterXML/jackson-module-scala/issues/184","id":71860116,"user":{"login":"nbauernfeind","id":1030443,"avatar_url":"https://avatars.githubusercontent.com/u/1030443?v=3","gravatar_id":"","url":"https://api.github.com/users/nbauernfeind","html_url":"https://github.com/nbauernfeind","followers_url":"https://api.github.com/users/nbauernfeind/followers","following_url":"https://api.github.com/users/nbauernfeind/following{/other_user}","gists_url":"https://api.github.com/users/nbauernfeind/gists{/gist_id}","starred_url":"https://api.github.com/users/nbauernfeind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbauernfeind/subscriptions","organizations_url":"https://api.github.com/users/nbauernfeind/orgs","repos_url":"https://api.github.com/users/nbauernfeind/repos","events_url":"https://api.github.com/users/nbauernfeind/events{/privacy}","received_events_url":"https://api.github.com/users/nbauernfeind/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T16:02:17Z","updated_at":"2015-01-28T16:02:17Z","body":"I think this comment is going to be useful to you:\r\nhttps://github.com/FasterXML/jackson-module-scala/issues/175#issuecomment-69513744\r\n\r\nYou probably want to try java.lang.Long instead of Long."}}