-
Notifications
You must be signed in to change notification settings - Fork 107
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
New static method in interface detected as METHOD_NEW_DEFAULT #289
Comments
Hello @runeflobakk , I meet a similar problem with you. The link is ISSUE. The difference is that I set BinaryIncompatible to disabled and SourceIncompatible to enabled. However, I think adding a default method to an interface shouldn't be source incompatible. Do you have any solution right now? |
Hello, you both are right (see here). I will fix this in the next release. |
Thanks for your reply! @siom79 Looking forward to the next version. |
When will the next version be released, please? @siom79 😄 |
I have just released 0.17.3. It should be available in Maven central within a few hours. |
@siom79, it looks like this issue here was also about whether new For regular classes, adding a |
@Marcono1234 Yes, you are right. If the method is new an not abstract (e.g. static) it is flagged as |
Or would it need a new type? Because Should maybe |
…N_INTERFACE_NOW_STATIC and METHOD_STATIC_IN_INTERFACE_NO_LONGER_STATIC
I have fixed the issue in the latest commit. In this context I have introduced three new incompatiblities:
|
I have added a couple of public static methods in an interface, and japicmp detects them as a binary incompatible
METHOD_NEW_DEFAULT
change. I don't have the knowledge to tell if this indeed is incompatible, but I was a bit surprised, and since the change indicates something to do with default methods, I thought I'd ask if this may be a false positive.Should adding static methods to an interface be detected as
METHOD_NEW_DEFAULT
?If I have not provided enough context here, please just let me know what information you need :)
The text was updated successfully, but these errors were encountered: