{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/391","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/391/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/391/events","html_url":"https://github.com/mapstruct/mapstruct/pull/391","id":52300873,"number":391,"title":"#385 Inheritance selection on best fit source- and target type ","user":{"login":"sjaakd","id":6173283,"avatar_url":"https://avatars.githubusercontent.com/u/6173283?v=3","gravatar_id":"","url":"https://api.github.com/users/sjaakd","html_url":"https://github.com/sjaakd","followers_url":"https://api.github.com/users/sjaakd/followers","following_url":"https://api.github.com/users/sjaakd/following{/other_user}","gists_url":"https://api.github.com/users/sjaakd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjaakd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjaakd/subscriptions","organizations_url":"https://api.github.com/users/sjaakd/orgs","repos_url":"https://api.github.com/users/sjaakd/repos","events_url":"https://api.github.com/users/sjaakd/events{/privacy}","received_events_url":"https://api.github.com/users/sjaakd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-12-17T22:30:38Z","updated_at":"2015-01-05T22:09:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapstruct/mapstruct/pulls/391","html_url":"https://github.com/mapstruct/mapstruct/pull/391","diff_url":"https://github.com/mapstruct/mapstruct/pull/391.diff","patch_url":"https://github.com/mapstruct/mapstruct/pull/391.patch"},"body":"\r\n* General improvement, factories and mapping method selection make use of the same (selector) mechanism.\r\n\r\n* For the source-type, the fit was not applied in two directions. For that purpose the absolute (type) distance is used iso distance.\r\n\r\n* There was no target-type inheritance implemented."},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/68790966","html_url":"https://github.com/mapstruct/mapstruct/pull/391#issuecomment-68790966","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/391","id":68790966,"user":{"login":"sjaakd","id":6173283,"avatar_url":"https://avatars.githubusercontent.com/u/6173283?v=3","gravatar_id":"","url":"https://api.github.com/users/sjaakd","html_url":"https://github.com/sjaakd","followers_url":"https://api.github.com/users/sjaakd/followers","following_url":"https://api.github.com/users/sjaakd/following{/other_user}","gists_url":"https://api.github.com/users/sjaakd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjaakd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjaakd/subscriptions","organizations_url":"https://api.github.com/users/sjaakd/orgs","repos_url":"https://api.github.com/users/sjaakd/repos","events_url":"https://api.github.com/users/sjaakd/events{/privacy}","received_events_url":"https://api.github.com/users/sjaakd/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T22:09:03Z","updated_at":"2015-01-05T22:09:03Z","body":"> Could you give an example type hierarchy which currently raises an ambiguity error but would be handled unambigously with the proposed fix?\r\n\r\nSee #385. I'm dealing with generated JAXB object factories. I can't change the XSD that they are created from, they are given"}}