Skip to content

Commit c8886fb

Browse files
authored
use proper class def to find interfaces (#8476)
1 parent dceca28 commit c8886fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/server/MethodHandlersInstrumentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void onEnter(@Advice.Argument(0) Object serviceImpl) {
5959
if (superClass != null) {
6060
// bindService() would be the only method in this case and it's irrelevant
6161
if (superClass.getDeclaredMethods().length == 1) {
62-
for (Class<?> i : serviceClass.getInterfaces()) {
62+
for (Class<?> i : superClass.getInterfaces()) {
6363
if (i.getSimpleName().equals("AsyncService")) {
6464
superClass = i;
6565
break;

0 commit comments

Comments
 (0)