Skip to content

Commit

Permalink
Unwrap target user class
Browse files Browse the repository at this point in the history
  • Loading branch information
markusheiden committed Mar 19, 2024
1 parent 622bb7f commit f7c137d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ protected TransactionAttribute computeTransactionAttribute(Method method, @Nulla
}

// Second try is the transaction attribute on the target class.
txAttr = findTransactionAttribute(targetClass != null ? targetClass : specificMethod.getDeclaringClass());
Class<?> specificTargetClass = method.getDeclaringClass();
if (targetClass != null) {
specificTargetClass = ClassUtils.getUserClass(targetClass);
}
txAttr = findTransactionAttribute(specificTargetClass);
if (txAttr != null && ClassUtils.isUserLevelMethod(method)) {
return txAttr;
}
Expand Down

0 comments on commit f7c137d

Please sign in to comment.