{"action":"created","issue":{"url":"https://api.github.com/repos/x-stream/xstream/issues/66","repository_url":"https://api.github.com/repos/x-stream/xstream","labels_url":"https://api.github.com/repos/x-stream/xstream/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/x-stream/xstream/issues/66/comments","events_url":"https://api.github.com/repos/x-stream/xstream/issues/66/events","html_url":"https://github.com/x-stream/xstream/issues/66","id":175223118,"number":66,"title":"@XStreamInclude doesn't ignore tags","user":{"login":"phxql","id":700033,"avatar_url":"https://avatars.githubusercontent.com/u/700033?v=3","gravatar_id":"","url":"https://api.github.com/users/phxql","html_url":"https://github.com/phxql","followers_url":"https://api.github.com/users/phxql/followers","following_url":"https://api.github.com/users/phxql/following{/other_user}","gists_url":"https://api.github.com/users/phxql/gists{/gist_id}","starred_url":"https://api.github.com/users/phxql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phxql/subscriptions","organizations_url":"https://api.github.com/users/phxql/orgs","repos_url":"https://api.github.com/users/phxql/repos","events_url":"https://api.github.com/users/phxql/events{/privacy}","received_events_url":"https://api.github.com/users/phxql/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/x-stream/xstream/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"joehni","id":795149,"avatar_url":"https://avatars.githubusercontent.com/u/795149?v=3","gravatar_id":"","url":"https://api.github.com/users/joehni","html_url":"https://github.com/joehni","followers_url":"https://api.github.com/users/joehni/followers","following_url":"https://api.github.com/users/joehni/following{/other_user}","gists_url":"https://api.github.com/users/joehni/gists{/gist_id}","starred_url":"https://api.github.com/users/joehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehni/subscriptions","organizations_url":"https://api.github.com/users/joehni/orgs","repos_url":"https://api.github.com/users/joehni/repos","events_url":"https://api.github.com/users/joehni/events{/privacy}","received_events_url":"https://api.github.com/users/joehni/received_events","type":"User","site_admin":false},"assignees":[{"login":"joehni","id":795149,"avatar_url":"https://avatars.githubusercontent.com/u/795149?v=3","gravatar_id":"","url":"https://api.github.com/users/joehni","html_url":"https://github.com/joehni","followers_url":"https://api.github.com/users/joehni/followers","following_url":"https://api.github.com/users/joehni/following{/other_user}","gists_url":"https://api.github.com/users/joehni/gists{/gist_id}","starred_url":"https://api.github.com/users/joehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehni/subscriptions","organizations_url":"https://api.github.com/users/joehni/orgs","repos_url":"https://api.github.com/users/joehni/repos","events_url":"https://api.github.com/users/joehni/events{/privacy}","received_events_url":"https://api.github.com/users/joehni/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-06T11:24:21Z","updated_at":"2016-10-07T10:55:51Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using XStream with `ignoreUnknownElements()` enabled. I'm trying to parse\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\r\n<test>\r\n    <tags>\r\n        <tag1></tag1>\r\n        <tag2></tag2>\r\n    </tags>\r\n</test>\r\n```\r\n\r\n```java\r\n@XStreamInclude({Tag1.class, Tag2.class})\r\npublic interface Tag {}\r\n\r\n@XStreamAlias(\"tag1\")\r\npublic class Tag1 implements Tag {}\r\n\r\n@XStreamAlias(\"tag2\")\r\npublic class Tag2 implements Tag {}\r\n```\r\n\r\nSo far, so good. If i add `<tag3></tag3>` to the `<tags>` list but not to the `@XStreamInclude`, i assumed XStream will ignore that element. Instead it raises an exception:\r\n\r\n```\r\nException in thread \"main\" com.thoughtworks.xstream.converters.ConversionException: \r\n---- Debugging information ----\r\ncause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException\r\ncause-message       : tag3\r\nclass               : java.util.ArrayList\r\nrequired-type       : java.util.ArrayList\r\nconverter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter\r\npath                : /test/tags/tag3\r\nline number         : 6\r\nclass[1]            : xstreaminclude.dto.Test\r\nconverter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter\r\nversion             : 1.4.9\r\n```\r\n\r\nI've written a reproducer: https://github.com/phxql/xstreaminclude-reproducer\r\n\r\nIs there a way to ignore unknown tags in a list?"},"comment":{"url":"https://api.github.com/repos/x-stream/xstream/issues/comments/252216324","html_url":"https://github.com/x-stream/xstream/issues/66#issuecomment-252216324","issue_url":"https://api.github.com/repos/x-stream/xstream/issues/66","id":252216324,"user":{"login":"phxql","id":700033,"avatar_url":"https://avatars.githubusercontent.com/u/700033?v=3","gravatar_id":"","url":"https://api.github.com/users/phxql","html_url":"https://github.com/phxql","followers_url":"https://api.github.com/users/phxql/followers","following_url":"https://api.github.com/users/phxql/following{/other_user}","gists_url":"https://api.github.com/users/phxql/gists{/gist_id}","starred_url":"https://api.github.com/users/phxql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phxql/subscriptions","organizations_url":"https://api.github.com/users/phxql/orgs","repos_url":"https://api.github.com/users/phxql/repos","events_url":"https://api.github.com/users/phxql/events{/privacy}","received_events_url":"https://api.github.com/users/phxql/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T10:55:51Z","updated_at":"2016-10-07T10:55:51Z","body":"Okay, thank you."}}
{"actor":{"display_login":"phxql"}}