mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Prior to this commit, "new RetryTask<>" declarations whose TaskCallbacks (implemented as lambda expressions) did not actually throw an exception resulted in a compilation error in Eclipse: "Unhandled exception type Exception". This is due to the fact that RetryTask is declared with "E extends Exception", and the Eclipse compiler therefore infers that the lambda expression potentially throws a checked Exception. To address that, this commit explicitly declares that the affected lambda expressions throw unchecked RuntimeExceptions: "new RetryTask<String, RuntimeException>"