提交 963b07b8 编写于 作者: A ascrutae

修复部分问题

上级 6af1a0fc
......@@ -18,6 +18,10 @@ public class ArgumentTypeNameMatch implements ElementMatcher<MethodDescription>
@Override
public boolean matches(MethodDescription target) {
return target.getParameters().get(index).getType().asErasure().getName().equals(argumentTypeName);
if (target.getParameters().size() > index) {
return target.getParameters().get(index).getType().asErasure().getName().equals(argumentTypeName);
}
return false;
}
}
......@@ -23,7 +23,7 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.8.1</version>
<version>2.9.0</version>
<scope>provided</scope>
</dependency>
......
......@@ -11,6 +11,8 @@ import com.a.eye.skywalking.plugin.interceptor.matcher.SimpleMethodMatcher;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;
import java.net.URI;
import static net.bytebuddy.matcher.ElementMatchers.not;
import static net.bytebuddy.matcher.ElementMatchers.takesArgument;
......@@ -46,7 +48,7 @@ public class JedisPluginDefine extends ClassInstanceMethodsEnhancePluginDefine {
}, new ConstructorInterceptPoint() {
@Override
public ElementMatcher<MethodDescription> getConstructorMatcher() {
return takesArgument(0, String.class);
return takesArgument(0, URI.class);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册