mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-16 08:16:15 +10:00
Fixed hasField() bug.
This commit is contained in:
+3
-3
@@ -38,10 +38,10 @@ import com.navercorp.pinpoint.bootstrap.context.TraceContext;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.DefaultInterceptorGroupDefinition;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentClass;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentException;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.InterceptorGroupDefinition;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.MethodFilter;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.MethodInfo;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.NotFoundInstrumentException;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.InterceptorGroupDefinition;
|
||||
import com.navercorp.pinpoint.bootstrap.instrument.Type;
|
||||
import com.navercorp.pinpoint.bootstrap.interceptor.ByteCodeMethodDescriptorSupport;
|
||||
import com.navercorp.pinpoint.bootstrap.interceptor.Interceptor;
|
||||
@@ -55,9 +55,9 @@ import com.navercorp.pinpoint.bootstrap.interceptor.group.InterceptorGroupInvoca
|
||||
import com.navercorp.pinpoint.profiler.interceptor.DebugGroupDelegateSimpleInterceptor;
|
||||
import com.navercorp.pinpoint.profiler.interceptor.DebugGroupDelegateStaticInterceptor;
|
||||
import com.navercorp.pinpoint.profiler.interceptor.DefaultMethodDescriptor;
|
||||
import com.navercorp.pinpoint.profiler.interceptor.InterceptorRegistryBinder;
|
||||
import com.navercorp.pinpoint.profiler.interceptor.GroupDelegateSimpleInterceptor;
|
||||
import com.navercorp.pinpoint.profiler.interceptor.GroupDelegateStaticInterceptor;
|
||||
import com.navercorp.pinpoint.profiler.interceptor.InterceptorRegistryBinder;
|
||||
import com.navercorp.pinpoint.profiler.util.ApiUtils;
|
||||
import com.navercorp.pinpoint.profiler.util.JavaAssistUtils;
|
||||
|
||||
@@ -927,7 +927,7 @@ public class JavaAssistClass implements InstrumentClass {
|
||||
@Override
|
||||
public boolean hasField(String name, String type) {
|
||||
try {
|
||||
ctClass.getField(name, type);
|
||||
ctClass.getField(name, JavaAssistUtils.toJvmSignature(type));
|
||||
} catch (NotFoundException e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -105,9 +105,7 @@ public final class JavaAssistUtils {
|
||||
|
||||
}
|
||||
|
||||
|
||||
//for test
|
||||
static String toJvmSignature(String javaType) {
|
||||
public static String toJvmSignature(String javaType) {
|
||||
if (javaType == null) {
|
||||
throw new NullPointerException("javaType must not be null");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user