{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/785","labels_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/785/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/785/events","html_url":"https://github.com/FasterXML/jackson-databind/pull/785","id":74110161,"number":785,"title":"Add handlings for classes which are available in `Thread.currentThread().getContextClassLoader()`","user":{"login":"drcrallen","id":8213081,"avatar_url":"https://avatars.githubusercontent.com/u/8213081?v=3","gravatar_id":"","url":"https://api.github.com/users/drcrallen","html_url":"https://github.com/drcrallen","followers_url":"https://api.github.com/users/drcrallen/followers","following_url":"https://api.github.com/users/drcrallen/following{/other_user}","gists_url":"https://api.github.com/users/drcrallen/gists{/gist_id}","starred_url":"https://api.github.com/users/drcrallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcrallen/subscriptions","organizations_url":"https://api.github.com/users/drcrallen/orgs","repos_url":"https://api.github.com/users/drcrallen/repos","events_url":"https://api.github.com/users/drcrallen/events{/privacy}","received_events_url":"https://api.github.com/users/drcrallen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T20:07:42Z","updated_at":"2015-05-07T20:37:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/pulls/785","html_url":"https://github.com/FasterXML/jackson-databind/pull/785","diff_url":"https://github.com/FasterXML/jackson-databind/pull/785.diff","patch_url":"https://github.com/FasterXML/jackson-databind/pull/785.patch"},"body":"druid.io jumps through some nasty hoops to try and isolate hadoop classes. Part of this is NOT including the hadoop jars in the system classpath, but creating a separate URL class loader which isolates the hadoop class handling. Unfortunately this causes `getDeclaredMethods()` to puke and die since the original `cls` or `_class` (loaded through the system classloader) may have methods which use some of the hadoop classes, and the context class loader is not taken into account when resolution of the declared methods proceeds.\r\n\r\nThis proposed patch simply watches for the failure case, and tries to load the class from the context class loader instead.\r\n\r\nAnother potential solution would be to load the `cls` or `_class` from the context class loader way before it reaches this point, but I am not fluent enough in jackson-databind to make such a change."},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/comments/100011515","html_url":"https://github.com/FasterXML/jackson-databind/pull/785#issuecomment-100011515","issue_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/785","id":100011515,"user":{"login":"drcrallen","id":8213081,"avatar_url":"https://avatars.githubusercontent.com/u/8213081?v=3","gravatar_id":"","url":"https://api.github.com/users/drcrallen","html_url":"https://github.com/drcrallen","followers_url":"https://api.github.com/users/drcrallen/followers","following_url":"https://api.github.com/users/drcrallen/following{/other_user}","gists_url":"https://api.github.com/users/drcrallen/gists{/gist_id}","starred_url":"https://api.github.com/users/drcrallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcrallen/subscriptions","organizations_url":"https://api.github.com/users/drcrallen/orgs","repos_url":"https://api.github.com/users/drcrallen/repos","events_url":"https://api.github.com/users/drcrallen/events{/privacy}","received_events_url":"https://api.github.com/users/drcrallen/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T20:37:19Z","updated_at":"2015-05-07T20:37:19Z","body":"@cowtowncoder : I'll get the CLA signed soon."}}