Skip to content

Commit 33b5404

Browse files
committed
When adding TASK_WRAPPER to the declared interfaces, make sure we also add it to the generic signature
1 parent 9c1ca62 commit 33b5404

File tree

1 file changed

+3
-0
lines changed
  • dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/profiling

1 file changed

+3
-0
lines changed

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/profiling/UnwrappingVisitor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ public void visit(
8383
String[] interfaces) {
8484
if (interfaces == null || !Arrays.asList(interfaces).contains(TASK_WRAPPER)) {
8585
interfaces = append(interfaces, TASK_WRAPPER);
86+
if (signature != null) {
87+
signature += 'L' + TASK_WRAPPER + ';';
88+
}
8689
modify = true;
8790
}
8891
super.visit(version, access, name, signature, superName, interfaces);

0 commit comments

Comments
 (0)