exception type should be parametric #6

zdila opened this Issue Mar 6, 2013 · 1 comment


None yet
2 participants

zdila commented Mar 6, 2013

public final <T> T execute(RetryCallback<T> retryCallback) throws Exception

should be changed to

public final <T, E extends Exception> T execute(RetryCallback<T, E> retryCallback) throws E

This would allow to use RuntimeException as type argument and so not forcing checked exceptions to be handled.


dsyer commented Mar 6, 2013

It's a bit late for that I think (would break backwards compatibility), and I'm not sure it would be easy anyway. If you have a proposed change, make sure it works with pre-compiled code against an older spring-retry.

@dsyer dsyer closed this in 5fc484d Apr 24, 2014

@dsyer dsyer added this to the 1.1.0 milestone Apr 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment