forked from lightbend-labs/mima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report the loss of trait init methods
In the encoding of traits the presence of a method with a body (a "concrete method") triggers the generation of a trait initialisation method, "$init$", which will be invoked by subclasses during construction. The effect this has is that dropping the last concrete method(s) from a trait _removes_ the trait init method, which is a binary incompatible change to client's subclasses. Fixes lightbend-labs#426
- Loading branch information
Showing
15 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
functional-tests/src/test/trait-deleting-concrete-methods-is-nok/problems.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
synthetic static method $init$(B)Unit in interface B does not have a correspondent in new version |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
functional-tests/src/test/trait-pushing-up-concrete-methods-is-nok/problems.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
synthetic static method $init$(B)Unit in interface B does not have a correspondent in new version |
File renamed without changes.
File renamed without changes.
Empty file.