You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/06/13 06:40:33 UTC

[skywalking] branch agent-classloader-enhance created (now 44bb30f)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a change to branch agent-classloader-enhance
in repository https://gitbox.apache.org/repos/asf/skywalking.git.


      at 44bb30f  Try to use agent class loader to avoid agent class not define.

This branch includes the following new commits:

     new 44bb30f  Try to use agent class loader to avoid agent class not define.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[skywalking] 01/01: Try to use agent class loader to avoid agent class not define.

Posted by wu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch agent-classloader-enhance
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 44bb30f3553d2628782f0f09d28f1574090981de
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Jun 13 14:39:12 2019 +0800

    Try to use agent class loader to avoid agent class not define.
---
 .../skywalking/apm/agent/core/plugin/loader/AgentClassLoader.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/AgentClassLoader.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/AgentClassLoader.java
index 9869056..0c03bbd 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/AgentClassLoader.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/AgentClassLoader.java
@@ -149,7 +149,8 @@ public class AgentClassLoader extends ClassLoader {
                 }
             }
         }
-        throw new ClassNotFoundException("Can't find " + name);
+
+        return getDefault().findClass(name);
     }
 
     @Override