-
Notifications
You must be signed in to change notification settings - Fork 71
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
Too wide matchName for InheritedNewAbstractMethodProblem #196
Comments
/cc @2m? |
For now I have created a failing test-case: #197 Anyone else is free to jump on it if interested. More information on the issue is in akka/akka#23563 (comment) by @nick-nachos It is the sbt plugin that needs a fix, as the reporter itself has correct report on this issue:
|
@2m I am not sure what you mean by:
I have fixed the issue locally by changing this:
to this:
This fix is in par with the analysis I made in the related akka issue. Would you like to make the change yourself, or should I proceed with a pull request? |
Fix sounds good. Yes, please proceed with a pull request! |
Ok great. Before proceeding with this I should note that this change will have a breaking effect to any current consumers of Filters based on the InheritedNewAbstractMethodProblem, which will have to rewrite the corresponding filter expressions. Given that current behavior is considered a bug, I assume that this is not a problem, but I would like your confirmation as well. To demonstrate with an example, in the scripted test case you provided a current consumer would have to write a filter expression of the form:
which will have to be changed to:
|
…tchingFix Match inherited abstract methods against inheriting class #196
If one mixin
ActorLogging
(trait) it correctly complains about InheritedNewAbstractMethodProblem, but the filter to exclude it is:Looks like matchName is for the trait that introduces the problem, instead of the target trait. That means that after adding such filter other breakages of mixing in ActorLogging will not be detected.
The text was updated successfully, but these errors were encountered: