Restore original MethodMapTransactionAttributeSource matching rules
Issue: SPR-16733
This commit is contained in:
parent
ff2228fdaf
commit
c5b524db7c
|
|
@ -32,7 +32,6 @@ import org.springframework.util.Assert;
|
|||
import org.springframework.util.ClassUtils;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
import org.springframework.util.PatternMatchUtils;
|
||||
import org.springframework.util.ReflectionUtils;
|
||||
|
||||
/**
|
||||
* Simple {@link TransactionAttributeSource} implementation that
|
||||
|
|
@ -145,7 +144,7 @@ public class MethodMapTransactionAttributeSource
|
|||
Assert.notNull(mappedName, "Mapped name must not be null");
|
||||
String name = clazz.getName() + '.' + mappedName;
|
||||
|
||||
Method[] methods = ReflectionUtils.getAllDeclaredMethods(clazz);
|
||||
Method[] methods = clazz.getDeclaredMethods();
|
||||
List<Method> matchingMethods = new ArrayList<>();
|
||||
for (Method method : methods) {
|
||||
if (isMatch(method.getName(), mappedName)) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<property name="transactionAttributeSource">
|
||||
<value>
|
||||
org.springframework.tests.sample.beans.ITestBean.s*=PROPAGATION_MANDATORY
|
||||
org.springframework.tests.sample.beans.ITestBean.setAg*=PROPAGATION_REQUIRED
|
||||
org.springframework.tests.sample.beans.AgeHolder.setAg*=PROPAGATION_REQUIRED
|
||||
org.springframework.tests.sample.beans.ITestBean.set*= PROPAGATION_SUPPORTS , readOnly
|
||||
</value>
|
||||
</property>
|
||||
|
|
|
|||
Loading…
Reference in New Issue