{"action":"created","issue":{"url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/issues/48","repository_url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin","labels_url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/issues/48/comments","events_url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/issues/48/events","html_url":"https://github.com/highsource/jaxb2-annotate-plugin/issues/48","id":344718050,"node_id":"MDU6SXNzdWUzNDQ3MTgwNTA=","number":48,"title":"Annotate xsd:any element","user":{"login":"GunoH","id":915288,"node_id":"MDQ6VXNlcjkxNTI4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/915288?v=4","gravatar_id":"","url":"https://api.github.com/users/GunoH","html_url":"https://github.com/GunoH","followers_url":"https://api.github.com/users/GunoH/followers","following_url":"https://api.github.com/users/GunoH/following{/other_user}","gists_url":"https://api.github.com/users/GunoH/gists{/gist_id}","starred_url":"https://api.github.com/users/GunoH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GunoH/subscriptions","organizations_url":"https://api.github.com/users/GunoH/orgs","repos_url":"https://api.github.com/users/GunoH/repos","events_url":"https://api.github.com/users/GunoH/events{/privacy}","received_events_url":"https://api.github.com/users/GunoH/received_events","type":"User","site_admin":false},"labels":[{"id":123956682,"node_id":"MDU6TGFiZWwxMjM5NTY2ODI=","url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"highsource","id":6707996,"node_id":"MDQ6VXNlcjY3MDc5OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6707996?v=4","gravatar_id":"","url":"https://api.github.com/users/highsource","html_url":"https://github.com/highsource","followers_url":"https://api.github.com/users/highsource/followers","following_url":"https://api.github.com/users/highsource/following{/other_user}","gists_url":"https://api.github.com/users/highsource/gists{/gist_id}","starred_url":"https://api.github.com/users/highsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highsource/subscriptions","organizations_url":"https://api.github.com/users/highsource/orgs","repos_url":"https://api.github.com/users/highsource/repos","events_url":"https://api.github.com/users/highsource/events{/privacy}","received_events_url":"https://api.github.com/users/highsource/received_events","type":"User","site_admin":false},"assignees":[{"login":"highsource","id":6707996,"node_id":"MDQ6VXNlcjY3MDc5OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6707996?v=4","gravatar_id":"","url":"https://api.github.com/users/highsource","html_url":"https://github.com/highsource","followers_url":"https://api.github.com/users/highsource/followers","following_url":"https://api.github.com/users/highsource/following{/other_user}","gists_url":"https://api.github.com/users/highsource/gists{/gist_id}","starred_url":"https://api.github.com/users/highsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highsource/subscriptions","organizations_url":"https://api.github.com/users/highsource/orgs","repos_url":"https://api.github.com/users/highsource/repos","events_url":"https://api.github.com/users/highsource/events{/privacy}","received_events_url":"https://api.github.com/users/highsource/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/milestones/5","html_url":"https://github.com/highsource/jaxb2-annotate-plugin/milestone/5","labels_url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/milestones/5/labels","id":3404898,"node_id":"MDk6TWlsZXN0b25lMzQwNDg5OA==","number":5,"title":"1.1.X","description":null,"creator":{"login":"highsource","id":6707996,"node_id":"MDQ6VXNlcjY3MDc5OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6707996?v=4","gravatar_id":"","url":"https://api.github.com/users/highsource","html_url":"https://github.com/highsource","followers_url":"https://api.github.com/users/highsource/followers","following_url":"https://api.github.com/users/highsource/following{/other_user}","gists_url":"https://api.github.com/users/highsource/gists{/gist_id}","starred_url":"https://api.github.com/users/highsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highsource/subscriptions","organizations_url":"https://api.github.com/users/highsource/orgs","repos_url":"https://api.github.com/users/highsource/repos","events_url":"https://api.github.com/users/highsource/events{/privacy}","received_events_url":"https://api.github.com/users/highsource/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-06-06T13:01:29Z","updated_at":"2018-07-26T08:51:13Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2018-07-26T06:57:23Z","updated_at":"2018-07-28T14:33:29Z","closed_at":"2018-07-26T08:49:20Z","author_association":"NONE","body":"Hi there,\r\n\r\nI'm trying to add an annotation to an `xsd:any` element (which is translated in to `java.util.List<Object>` in Java), but so far I've been unsuccessful; keep getting the error message _\"compiler was unable to honor this annotate customization. It is attached to a wrong place, or its inconsistent with other bindings.\"_\r\n\r\nSo what I want is to add an extra annotation to the _content_ field in the generated class:\r\n```java\r\npublic class List {\r\n\r\n    @XmlMixed\r\n    @XmlAnyElement(lax = true)\r\n    @javax.xml.bind.annotation.XmlAnyElement(...) // <-- I want this annotation to be added.\r\n    protected java.util.List<Object> content;\r\n[...]\r\n}\r\n```\r\n\r\n\r\n\r\nIs an annotation at this level even supported?\r\nOr am I doing something wrong here?\r\n\r\nMy schema:\r\n```xml\r\n<xsd:schema\r\n        xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\r\n        xmlns:jaxb=\"http://java.sun.com/xml/ns/jaxb\"\r\n        jaxb:version=\"2.1\"\r\n        elementFormDefault=\"qualified\">\r\n\r\n    <xsd:complexType name=\"List\" mixed=\"true\">\r\n        <xsd:sequence>\r\n            <xsd:any minOccurs=\"0\" maxOccurs=\"unbounded\" processContents=\"lax\"/>\r\n        </xsd:sequence>\r\n    </xsd:complexType>\r\n\r\n</xsd:schema>\r\n```\r\n\r\nBinding file (using `@Deprecated` annotation for simplicity here):\r\n```xml\r\n<jaxb:bindings\r\n        xmlns:jaxb=\"http://java.sun.com/xml/ns/jaxb\"\r\n        xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\r\n        xmlns:annox=\"http://annox.dev.java.net\"\r\n        jaxb:extensionBindingPrefixes=\"annox\"\r\n        jaxb:version=\"2.1\">\r\n\r\n    jaxb:extensionBindingPrefixes=\"annox\"\r\n\r\n    <jaxb:bindings schemaLocation=\"schema.xsd\" node=\"/xsd:schema\">\r\n        <jaxb:bindings node=\"xsd:complexType[@name='List']/xsd:sequence/xsd:any\">\r\n            <annox:annotate>@java.lang.Deprecated</annox:annotate>\r\n        </jaxb:bindings>\r\n    </jaxb:bindings>\r\n\r\n</jaxb:bindings>\r\n```\r\n\r\nUsing jaxb2-basics-annotate v1.1.0.\r\n\r\nThanks,\r\nGuno"},"comment":{"url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/issues/comments/408611883","html_url":"https://github.com/highsource/jaxb2-annotate-plugin/issues/48#issuecomment-408611883","issue_url":"https://api.github.com/repos/highsource/jaxb2-annotate-plugin/issues/48","id":408611883,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYxMTg4Mw==","user":{"login":"GunoH","id":915288,"node_id":"MDQ6VXNlcjkxNTI4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/915288?v=4","gravatar_id":"","url":"https://api.github.com/users/GunoH","html_url":"https://github.com/GunoH","followers_url":"https://api.github.com/users/GunoH/followers","following_url":"https://api.github.com/users/GunoH/following{/other_user}","gists_url":"https://api.github.com/users/GunoH/gists{/gist_id}","starred_url":"https://api.github.com/users/GunoH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GunoH/subscriptions","organizations_url":"https://api.github.com/users/GunoH/orgs","repos_url":"https://api.github.com/users/GunoH/repos","events_url":"https://api.github.com/users/GunoH/events{/privacy}","received_events_url":"https://api.github.com/users/GunoH/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T14:33:29Z","updated_at":"2018-07-28T14:33:29Z","author_association":"NONE","body":"Exactly what I needed. Great!"}}
{"actor":{"display_login":"GunoH"}}