{"action":"created","issue":{"url":"https://api.github.com/repos/jdbi/jdbi/issues/156","labels_url":"https://api.github.com/repos/jdbi/jdbi/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/jdbi/jdbi/issues/156/comments","events_url":"https://api.github.com/repos/jdbi/jdbi/issues/156/events","html_url":"https://github.com/jdbi/jdbi/pull/156","id":89389221,"number":156,"title":"Add lambda-friendly callback interfaces","user":{"login":"christophercurrie","id":19510,"avatar_url":"https://avatars.githubusercontent.com/u/19510?v=3","gravatar_id":"","url":"https://api.github.com/users/christophercurrie","html_url":"https://github.com/christophercurrie","followers_url":"https://api.github.com/users/christophercurrie/followers","following_url":"https://api.github.com/users/christophercurrie/following{/other_user}","gists_url":"https://api.github.com/users/christophercurrie/gists{/gist_id}","starred_url":"https://api.github.com/users/christophercurrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophercurrie/subscriptions","organizations_url":"https://api.github.com/users/christophercurrie/orgs","repos_url":"https://api.github.com/users/christophercurrie/repos","events_url":"https://api.github.com/users/christophercurrie/events{/privacy}","received_events_url":"https://api.github.com/users/christophercurrie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-06-18T20:26:24Z","updated_at":"2015-07-14T23:56:13Z","closed_at":"2015-07-14T17:36:11Z","pull_request":{"url":"https://api.github.com/repos/jdbi/jdbi/pulls/156","html_url":"https://github.com/jdbi/jdbi/pull/156","diff_url":"https://github.com/jdbi/jdbi/pull/156.diff","patch_url":"https://github.com/jdbi/jdbi/pull/156.patch"},"body":"Using JDBI with Java 8 lambdas is great until you want a callback that doesn't return a value. You can't cast the lambda to `VoidHandleCallback` because lambdas can only be cast to interfaces. It's an annoyance, not an obstacle, but one that's bugged me often enough that I want a better experience, and it's pretty easy to add.\r\n\r\nThis change adds functional interfaces that Java 8 can infer when the lambda does not return. It does not add any Java 8 dependencies.\r\n\r\nObjections?"},"comment":{"url":"https://api.github.com/repos/jdbi/jdbi/issues/comments/121431290","html_url":"https://github.com/jdbi/jdbi/pull/156#issuecomment-121431290","issue_url":"https://api.github.com/repos/jdbi/jdbi/issues/156","id":121431290,"user":{"login":"hgschmie","id":39495,"avatar_url":"https://avatars.githubusercontent.com/u/39495?v=3","gravatar_id":"","url":"https://api.github.com/users/hgschmie","html_url":"https://github.com/hgschmie","followers_url":"https://api.github.com/users/hgschmie/followers","following_url":"https://api.github.com/users/hgschmie/following{/other_user}","gists_url":"https://api.github.com/users/hgschmie/gists{/gist_id}","starred_url":"https://api.github.com/users/hgschmie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgschmie/subscriptions","organizations_url":"https://api.github.com/users/hgschmie/orgs","repos_url":"https://api.github.com/users/hgschmie/repos","events_url":"https://api.github.com/users/hgschmie/events{/privacy}","received_events_url":"https://api.github.com/users/hgschmie/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T23:56:13Z","updated_at":"2015-07-14T23:56:13Z","body":"If someone finds time, you can dig into the toolchains (https://maven.apache.org/guides/mini/guide-using-toolchains.html) which should make this painless (and the error messages a bit less obscure). I may do that when I am back from Europe (early August)."}}