You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoinPoint.getSignature().toLongString() -- public abstract java.lang.Object com.myco.util.GenericRepository.find(java.lang.Long)
JoinPoint.toLongString() -- org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint: execution:
[ReflectiveMethodInvocation: public abstract java.lang.Object com.mycoutil.GenericRepository.find(java.lang.Long); target is of class [com.myco.repository.impl.JpaProductRepository]]
Basically, toString methods don't provide much useful information, short versions provide too little, and long versions provide too much :-) and not consistent in their output. As a result, these methods are not very useful for tracing, performance monitoring etc.
Ramnivas Laddad opened SPR-5437 and commented
Furthermore, the method output doesn't match what AspectJ weaving produces making it difficult to migrate from/to Spring AOP and AspectJ weaving.
For example, here is what the current implementation of Spring AOP returns for these methods:
[ReflectiveMethodInvocation: public abstract java.lang.Object com.mycoutil.GenericRepository.find(java.lang.Long); target is of class [com.myco.repository.impl.JpaProductRepository]]
Basically, toString methods don't provide much useful information, short versions provide too little, and long versions provide too much :-) and not consistent in their output. As a result, these methods are not very useful for tracing, performance monitoring etc.
Referenced from: commits c8d6c15
The text was updated successfully, but these errors were encountered: