tipsy
12/19/2018, 9:29 AMType inference failed: Not enough information to infer parameter X in
fun <R : Any!, X : Exception!> withHandle(callback: ((handle: Handle!) → R!)!): R!
Please specify it explicitly.
the method signature is public <R, X extends Exception> R withHandle(HandleCallback<R, X> callback) throws X {
what am i supposed to do in this case?gildor
12/19/2018, 9:30 AMtipsy
12/19/2018, 9:32 AMval names = jdbi.withHandle({ handle ->
handle.createQuery("select name from contacts")
.mapTo(String::class.java)
.list()
})
i don't know how to specify the type of the exceptiongildor
12/19/2018, 9:34 AMjdbi.withHandle<R, Exception>
?tipsy
12/19/2018, 9:35 AM