alibaba / alibaba/arthas

Consider sm\trace\watch command support inherited methods?

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

Description

Template method is common used in java system.
Such as:

![image](https://user-images.githubusercontent.com/48389485/55526783-dfd16200-56c8-11e9-8293-ffbada398f8b.png)

There may be many different handlers. Now we can't trace one sub-handler, like:
`trace demo.MyHandler handle`

Consider to support this feature?

@hengyunabc

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of the sm\trace\watch command and how it resolves handler methods. Reproduce the reported case with a subclass and inherited handle method, then inspect existing trace behavior. Done means tracing the selected sub-handler works when the method is inherited, with coverage for the demonstrated scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.