mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
f5503298fb
Commitd1b65f6d3eintroduced a regression regarding the handling of missing dependencies for optional (typically default) TestExecutionListeners. Prior tod1b65f6d3ea TestExecutionListener was instantiated using java.lang.Class.newInstance() which never throws an InvocationTargetException. With the switch to the new SpringFactoriesLoader APIs, a TestExecutionListener is now instantiated using java.lang.reflect.Constructor.newInstance(Object...) which can throw an InvocationTargetException. This commit addresses the regression by unwrapping the target exception in an InvocationTargetException. See gh-28666 Closes gh-28828