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 237fc23d40..03febfe504 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;