mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-21 02:35:53 +10:00
[강운덕] [LUCYSUS-1744] 인터셉터 재사용로직 버그 수정.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@658 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -160,11 +160,17 @@ public class JavaAssistClass implements InstrumentClass {
|
||||
behavior = getBehavior(methodName, args);
|
||||
} catch (NotFoundException e) {
|
||||
// target method나 constructor를 차지 못했을 경우는 NotFoundInstrumentException을 던진다.
|
||||
throw new NotFoundInstrumentException(interceptor.getClass().getSimpleName() + " add fail. Cause:" + e.getMessage(), e);
|
||||
if (interceptor == null) {
|
||||
throw new NotFoundInstrumentException(interceptorId + " add fail. Cause:" + e.getMessage(), e);
|
||||
} else {
|
||||
throw new NotFoundInstrumentException(interceptor.getClass().getSimpleName() + " add fail. Cause:" + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
try {
|
||||
if (interceptor != null) {
|
||||
interceptorId = InterceptorRegistry.addInterceptor(interceptor);
|
||||
} else {
|
||||
interceptor = InterceptorRegistry.getInterceptor(interceptorId);
|
||||
}
|
||||
if (type == Type.auto) {
|
||||
if (interceptor instanceof StaticAroundInterceptor) {
|
||||
|
||||
Reference in New Issue
Block a user