{"action":"created","issue":{"url":"https://api.github.com/repos/embulk/embulk/issues/332","labels_url":"https://api.github.com/repos/embulk/embulk/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/embulk/embulk/issues/332/comments","events_url":"https://api.github.com/repos/embulk/embulk/issues/332/events","html_url":"https://github.com/embulk/embulk/pull/332","id":113957527,"number":332,"title":"Prevent exceptions at close() from overwriting essential exception","user":{"login":"frsyuki","id":40720,"avatar_url":"https://avatars.githubusercontent.com/u/40720?v=3","gravatar_id":"","url":"https://api.github.com/users/frsyuki","html_url":"https://github.com/frsyuki","followers_url":"https://api.github.com/users/frsyuki/followers","following_url":"https://api.github.com/users/frsyuki/following{/other_user}","gists_url":"https://api.github.com/users/frsyuki/gists{/gist_id}","starred_url":"https://api.github.com/users/frsyuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frsyuki/subscriptions","organizations_url":"https://api.github.com/users/frsyuki/orgs","repos_url":"https://api.github.com/users/frsyuki/repos","events_url":"https://api.github.com/users/frsyuki/events{/privacy}","received_events_url":"https://api.github.com/users/frsyuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T00:59:30Z","updated_at":"2015-10-29T01:24:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/embulk/embulk/pulls/332","html_url":"https://github.com/embulk/embulk/pull/332","diff_url":"https://github.com/embulk/embulk/pull/332.diff","patch_url":"https://github.com/embulk/embulk/pull/332.patch"},"body":"If an exception happens both in `try` block and `finally` block,\r\nexception by `finally` block overwrites exception by `try` block. Thus\r\nthe ssential exception information will be lost if `close()` call at\r\n`finally` block throws an exception.\r\n\r\nBut with try-with-resource, exception happend at `close()` will be added\r\nto suppressed exception of the exception at `try` block."},"comment":{"url":"https://api.github.com/repos/embulk/embulk/issues/comments/152046977","html_url":"https://github.com/embulk/embulk/pull/332#issuecomment-152046977","issue_url":"https://api.github.com/repos/embulk/embulk/issues/332","id":152046977,"user":{"login":"muga","id":127959,"avatar_url":"https://avatars.githubusercontent.com/u/127959?v=3","gravatar_id":"","url":"https://api.github.com/users/muga","html_url":"https://github.com/muga","followers_url":"https://api.github.com/users/muga/followers","following_url":"https://api.github.com/users/muga/following{/other_user}","gists_url":"https://api.github.com/users/muga/gists{/gist_id}","starred_url":"https://api.github.com/users/muga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muga/subscriptions","organizations_url":"https://api.github.com/users/muga/orgs","repos_url":"https://api.github.com/users/muga/repos","events_url":"https://api.github.com/users/muga/events{/privacy}","received_events_url":"https://api.github.com/users/muga/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T01:24:42Z","updated_at":"2015-10-29T01:24:42Z","body":"Looks good. "}}