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

Improve message for deprecation of doubling methods named "method" #5752

Closed
aimeos opened this issue Mar 16, 2024 · 1 comment
Closed

Improve message for deprecation of doubling methods named "method" #5752

aimeos opened this issue Mar 16, 2024 · 1 comment
Assignees
Labels
feature/test-doubles Stubs and Mock Objects type/enhancement A new idea that should be implemented

Comments

@aimeos
Copy link

aimeos commented Mar 16, 2024

The deprecation warning isn't currently very useful because it doesn't tell which class or interface does implement the method named method. In our case, none of our objects implement that method so we are not sure where it comes from (e.g. a 3rd party package) or if it's related to another issue.

The class name where the method is implemented would be very helpful.

@aimeos aimeos added the type/enhancement A new idea that should be implemented label Mar 16, 2024
@sebastianbergmann sebastianbergmann added the feature/test-doubles Stubs and Mock Objects label Mar 17, 2024
@sebastianbergmann sebastianbergmann self-assigned this Mar 17, 2024
@sebastianbergmann sebastianbergmann changed the title Better hint for "Deprecate support for doubling interfaces (or classes) that have a method named method" Improve message for deprecation of doubling methods named "method" Mar 17, 2024
@aimeos
Copy link
Author

aimeos commented Mar 17, 2024

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-doubles Stubs and Mock Objects type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants