{"action":"opened","issue":{"url":"https://api.github.com/repos/highsource/jaxb2-basics/issues/66","repository_url":"https://api.github.com/repos/highsource/jaxb2-basics","labels_url":"https://api.github.com/repos/highsource/jaxb2-basics/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/highsource/jaxb2-basics/issues/66/comments","events_url":"https://api.github.com/repos/highsource/jaxb2-basics/issues/66/events","html_url":"https://github.com/highsource/jaxb2-basics/issues/66","id":134860750,"number":66,"title":"simpleEquals does not work for JAXBElement in Lists","user":{"login":"victornoel","id":160975,"avatar_url":"https://avatars.githubusercontent.com/u/160975?v=3","gravatar_id":"","url":"https://api.github.com/users/victornoel","html_url":"https://github.com/victornoel","followers_url":"https://api.github.com/users/victornoel/followers","following_url":"https://api.github.com/users/victornoel/following{/other_user}","gists_url":"https://api.github.com/users/victornoel/gists{/gist_id}","starred_url":"https://api.github.com/users/victornoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victornoel/subscriptions","organizations_url":"https://api.github.com/users/victornoel/orgs","repos_url":"https://api.github.com/users/victornoel/repos","events_url":"https://api.github.com/users/victornoel/events{/privacy}","received_events_url":"https://api.github.com/users/victornoel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-19T13:08:02Z","updated_at":"2016-02-19T13:08:02Z","closed_at":null,"body":"Hi,\r\n\r\nI have a situation where a JAXBElement is in a List, and the simpleEquals plugins generated code contains something like this:\r\n```\r\n            List<Object> leftAny;\r\n            leftAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);\r\n            List<Object> rightAny;\r\n            rightAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null);\r\n            if (leftAny!= null) {\r\n                if (rightAny!= null) {\r\n                    if (!leftAny.equals(rightAny)) {\r\n                        return false;\r\n                    }\r\n                } else {\r\n                    return false;\r\n                }\r\n            } else {\r\n                if (rightAny!= null) {\r\n                    return false;\r\n                }\r\n            }\r\n```\r\n\r\nSo when equals is called on the ArrayList, of course JAXBElement are not compared by content as they should… Apparently the problem does not happen with the runtime-library-based equals plugin."}}