Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于sc命令检索出接口实现类问题 #2992

Open
TiggerT opened this issue Feb 24, 2025 · 0 comments
Open

关于sc命令检索出接口实现类问题 #2992

TiggerT opened this issue Feb 24, 2025 · 0 comments

Comments

@TiggerT
Copy link

TiggerT commented Feb 24, 2025

1、我实现了一个类public class MyTransformer implements ClassFileTransformer

官方文档仅说明“sc 默认开启了子类匹配功能,也就是说所有当前类的子类也会被搜索出来,想要精确的匹配,请打开options disable-sub-class true开关"

2、使用arthas工具搜索ClassFileTransformer直接把MyTransformer也搜出来了,这是什么原因?难道除了继承外,实现接口也会别关联检索出来吗?
[arthas@31096]$ sc ClassFileTransformer
com.loki.JavaAgent.MyTransformer
com.taobao.arthas.core.advisor.TransformerManager$1
com.taobao.arthas.core.command.klass100.ClassDumpTransformer
java.lang.instrument.ClassFileTransformer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant