From 8d381976cd2bffcf63e0bf67fda31290b2a0f4ad Mon Sep 17 00:00:00 2001 From: ascrutae Date: Sun, 25 Feb 2018 16:59:21 +0800 Subject: [PATCH] [Agent] fix HierarchyMatch donot support generic type --- .../skywalking/apm/agent/core/plugin/match/HierarchyMatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/HierarchyMatch.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/HierarchyMatch.java index e89fd486a..f134d383a 100644 --- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/HierarchyMatch.java +++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/HierarchyMatch.java @@ -85,7 +85,7 @@ public class HierarchyMatch implements IndirectMatch { } private void matchHierarchyClass(TypeDescription.Generic clazz, List parentTypes) { - parentTypes.remove(clazz.getTypeName()); + parentTypes.remove(clazz.asRawType().getTypeName()); if (parentTypes.size() == 0) { return; }