From 7caefb35a2200b92d6e22d3e8aa0cd7999b9366f Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 6 Nov 2024 15:57:13 +0100 Subject: [PATCH] Revise `ClassUtils` and `ReflectionUtils`. We deprecated `ClassUtils` in the repo.utils package and introduced a slimmer variant in o.s.d.util. Also, ReflectionUtils hosts now several methods that have been in ClassUtils along with an improved method naming (find vs. get in combination with return value semantics). CastUtils is deprecated as we do not widely use it. --- .../data/repository/core/support/RepositoryFactorySupport.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java index e5aab90f2..d77cf0bbf 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java @@ -701,6 +701,7 @@ public abstract class RepositoryFactorySupport try { return composition.invoke(invocationMulticaster, method, arguments); } catch (Exception ex) { + if (ex instanceof InvocationTargetException) { throw ((InvocationTargetException) ex).getTargetException(); }