{"action":"closed","issue":{"url":"https://api.github.com/repos/orika-mapper/orika/issues/83","repository_url":"https://api.github.com/repos/orika-mapper/orika","labels_url":"https://api.github.com/repos/orika-mapper/orika/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/orika-mapper/orika/issues/83/comments","events_url":"https://api.github.com/repos/orika-mapper/orika/issues/83/events","html_url":"https://github.com/orika-mapper/orika/issues/83","id":107559483,"number":83,"title":"TypeFactory doesn't resolve the real Type Argument for parameterized type.","user":{"login":"Fneuch","id":9579799,"avatar_url":"https://avatars.githubusercontent.com/u/9579799?v=3","gravatar_id":"","url":"https://api.github.com/users/Fneuch","html_url":"https://github.com/Fneuch","followers_url":"https://api.github.com/users/Fneuch/followers","following_url":"https://api.github.com/users/Fneuch/following{/other_user}","gists_url":"https://api.github.com/users/Fneuch/gists{/gist_id}","starred_url":"https://api.github.com/users/Fneuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fneuch/subscriptions","organizations_url":"https://api.github.com/users/Fneuch/orgs","repos_url":"https://api.github.com/users/Fneuch/repos","events_url":"https://api.github.com/users/Fneuch/events{/privacy}","received_events_url":"https://api.github.com/users/Fneuch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orika-mapper/orika/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-09-21T17:26:34Z","updated_at":"2016-10-25T20:08:44Z","closed_at":"2016-10-25T20:08:44Z","body":"Given the following class hierarchy:\r\n```java\r\npublic class Parent<T> {\r\n\tprivate T content;\r\n\tpublic T getContent() { return content; }\r\n\tpublic void setContent(T content) {\tthis.content = content; }\r\n}\r\n\r\npublic static class Child extends Parent<Map<String, Element>> {\t}\r\n```\r\nWhen using ```IntrospectorPropertyResolver``` to resolve the property \"content\" on child, we got a ```StackOverflowError```.\r\n\r\nThe problem came from ```TypeUtil#resolveActualTypeArguments```.  That validate the ```typeArguments``` only with ```Class```, it should validate ```ParametizedType``` too. \r\nTo support that, line 79 should be : \r\n```Java\r\n  if (typeArg instanceof ParameterizedType || typeArg instanceof Class) {\r\n```\r\n\r\nWe create a branch to validate that and test it, want me to create a pull request with it?\r\n"}}
{"actor":{"display_login":"andreabertagnolli"}}