alibaba / alibaba/arthas

TomcatEmbeddedWebappClassLoader 导致 classloader -l命令输出结果错位

Open
#2,127 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

执行`classloader -l`可以发现有一些奇怪的错位输出:

image

再用vim打开,可以发现实际上是 TomcatEmbeddedWebappClassLoader 的toString() 函数导致的:

image

---

考虑对 `ClassLoader#toString()` 函数做处理下?

Contributor guide

Open the contributing guide

Research direction

Reproduce the misaligned output with the `classloader -l` command and inspect `TomcatEmbeddedWebappClassLoader` together with `ClassLoader#toString()`. Confirm that the class-loader string is responsible for the formatting issue, then verify that the command output remains aligned after the handling is adjusted.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.