[강운덕] [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:
Woonduk Kang
2012-09-14 09:35:50 +00:00
parent 92f35b7727
commit 6bb0478ede
@@ -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) {