wu-sheng closed pull request #828: [Agent] fix HierarchyMatch donot support
generic type
URL: https://github.com/apache/incubator-skywalking/pull/828
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
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 boolean isMatch(TypeDescription typeDescription) {
}
private void matchHierarchyClass(TypeDescription.Generic clazz,
List<String> parentTypes) {
- parentTypes.remove(clazz.getTypeName());
+ parentTypes.remove(clazz.asRawType().getTypeName());
if (parentTypes.size() == 0) {
return;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services