Skip to content

Commit

Permalink
GH-3418: Fix Poller Undeclared Checked Exceptions
Browse files Browse the repository at this point in the history
Resolves #3418

`Class.newInstance()` can propagate checked exceptions that are not declared.

**cherry-pick/back-port to 5.3.x, 5.2.x, 4.3.x**

# Conflicts:
#	spring-integration-core/src/main/java/org/springframework/integration/endpoint/AbstractPollingEndpoint.java
  • Loading branch information
garyrussell authored and artembilan committed Nov 2, 2020
1 parent 9019676 commit b193294
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -48,6 +48,7 @@
import org.springframework.util.ClassUtils;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ErrorHandler;
import org.springframework.util.ReflectionUtils;

/**
* @author Mark Fisher
Expand Down Expand Up @@ -252,7 +253,7 @@ private boolean doPoll() {
return false;
}
else {
throw (RuntimeException) e;
ReflectionUtils.rethrowRuntimeException(e);
}
}
boolean result;
Expand Down

0 comments on commit b193294

Please sign in to comment.