{"action":"closed","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/164","labels_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/164/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/164/events","html_url":"https://github.com/FasterXML/jackson-databind/issues/164","id":10882842,"number":164,"title":"Duplicate fields are silently ignored in BeanDeserializer","user":{"login":"abar-or","id":3535986,"avatar_url":"https://avatars.githubusercontent.com/u/3535986?v=3","gravatar_id":"","url":"https://api.github.com/users/abar-or","html_url":"https://github.com/abar-or","followers_url":"https://api.github.com/users/abar-or/followers","following_url":"https://api.github.com/users/abar-or/following{/other_user}","gists_url":"https://api.github.com/users/abar-or/gists{/gist_id}","starred_url":"https://api.github.com/users/abar-or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abar-or/subscriptions","organizations_url":"https://api.github.com/users/abar-or/orgs","repos_url":"https://api.github.com/users/abar-or/repos","events_url":"https://api.github.com/users/abar-or/events{/privacy}","received_events_url":"https://api.github.com/users/abar-or/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2013-02-11T20:58:42Z","updated_at":"2015-02-25T03:26:24Z","closed_at":"2015-02-25T03:26:24Z","body":"Hello,\r\n\r\nI am using Jackson release 2.0.2 . BeanDeserializer implementation silently ignores Field duplicates in line 541:\r\n\r\n            SettableBeanProperty creatorProp = creator.findCreatorProperty(propName);\r\n            if (creatorProp != null) {\r\n                // Last creator property to set?\r\n                Object value = creatorProp.deserialize(jp, ctxt);\r\n\r\n    Line 541:\r\n       if (buffer.assignParameter(creatorProp.getPropertyIndex(), value)) {\r\n                    jp.nextToken(); // to move to following FIELD_NAME/END_OBJECT\r\n\r\nThere is no way currently to override this behavior and throw an error.  I suggest to check if the buffer already contains value in this property index and then allow to throw an exception.  Perhaps add a new annotation to trigger this behavior. \r\n\r\nAppreciate your feedback. \r\n\r\nBest Regards,\r\nAmir Bar-Or"}}