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

Report super class holding field in leaktrace #1972

Closed
pyricau opened this issue Oct 14, 2020 · 0 comments · Fixed by #1979
Closed

Report super class holding field in leaktrace #1972

pyricau opened this issue Oct 14, 2020 · 0 comments · Fixed by #1979
Milestone

Comments

@pyricau
Copy link
Member

pyricau commented Oct 14, 2020

When a leaktrace shows the field name, it should be printed as the actual class defining the field.

e.g. currently:

├─ com.example.leakcanary.ReleaseExampleApplication instance
│    Leaking: NO (Application is a singleton)
│    mBase instance of android.app.ContextImpl, not wrapping known Android context
│    ↓ ReleaseExampleApplication.leakedViews
│                                ~~~~~~~~~~~

Should become:

├─ com.example.leakcanary.ReleaseExampleApplication instance
│    Leaking: NO (Application is a singleton)
│    mBase instance of android.app.ContextImpl, not wrapping known Android context
│    ↓ ExampleApplication.leakedViews
│                         ~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant