From 99f4a4f473aab11b4375508b99c3f9232db886d2 Mon Sep 17 00:00:00 2001 From: "Raymond.Lam" Date: Mon, 28 Oct 2024 09:01:43 +0800 Subject: [PATCH] fix: class loader tree lack #2926 --- core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java b/core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java index 237fc23d401..03febfe504d 100644 --- a/core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java +++ b/core/src/main/java/com/taobao/arthas/core/util/ClassUtils.java @@ -192,7 +192,7 @@ public static List createClassVOList(Collection> matchedClasse public static ClassLoaderVO createClassLoaderVO(ClassLoader classLoader) { ClassLoaderVO classLoaderVO = new ClassLoaderVO(); classLoaderVO.setHash(classLoaderHash(classLoader)); - classLoaderVO.setName(classLoader==null?"BootstrapClassLoader":classLoader.toString()); + classLoaderVO.setName(classLoader==null?"BootstrapClassLoader":classLoader.toString().replace("\r", "")); ClassLoader parent = classLoader == null ? null : classLoader.getParent(); classLoaderVO.setParent(parent==null?null:parent.toString()); return classLoaderVO;