Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit cleans up the Problem case classes, removing mutable state and making the error messages parametric on the affected version. The commit also includes new keys for the sbt plugin, allowing the user to specify the comparison direction, and separate filters for backward and forward checks.
- Loading branch information
Showing
28 changed files
with
157 additions
and
110 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
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/case-class-concrete-becomes-abstract-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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class A was concrete; is declared abstract in new version | ||
method apply()A in object A does not have a correspondent in new version | ||
the type hierarchy of object A has changed in new version. Missing types {scala.runtime.AbstractFunction0} | ||
the type hierarchy of object A is different in new version. Missing types {scala.runtime.AbstractFunction0} |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/class-becomes-trait-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 |
---|---|---|
@@ -1 +1 @@ | ||
declaration of class A has changed to trait A in new version; changing class to trait breaks client code | ||
declaration of class A is trait A in new version; changing class to trait breaks client code |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/class-changed-val-type-in-new-version-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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo()Int in class A has now a different result type; was: Int, is now: java.lang.Object | ||
method foo()Int in class A has a different result type in new version, where it is java.lang.Object rather than Int |
4 changes: 2 additions & 2 deletions
4
reporter/functional-tests/src/test/class-changed-var-type-in-new-version-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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
method foo()Int in class A has now a different result type; was: Int, is now: java.lang.Object | ||
method foo_=(Int)Unit in class A's type has changed; was (Int)Unit, is now: (java.lang.Object)Unit | ||
method foo()Int in class A has a different result type in new version, where it is java.lang.Object rather than Int | ||
method foo_=(Int)Unit in class A's type is different in new version, where it is (java.lang.Object)Unit instead of (Int)Unit |
2 changes: 1 addition & 1 deletion
2
...ts/src/test/class-method-abstract-override-of-concrete-superclass-method-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 |
---|---|---|
@@ -1 +1 @@ | ||
abstract method foo()Int in class B does not have a correspondent in old version | ||
in new version there is abstract method foo()Int in class B, which does not have a correspondent |
2 changes: 1 addition & 1 deletion
2
...ts/src/test/class-method-abstract-override-of-concrete-supertrait-method-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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
abstract method foo()Int in class B does not have a correspondent in new version | ||
abstract method foo()Int in class B does not have a correspondent in old version | ||
in new version there is abstract method foo()Int in class B, which does not have a correspondent |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/class-method-changed-parameter-type-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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo(Int)Int in class A's type has changed; was (Int)Int, is now: (java.lang.Object)java.lang.Object | ||
method foo(Int)Int in class A's type is different in new version, where it is (java.lang.Object)java.lang.Object instead of (Int)Int |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/class-method-changed-parameters2-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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo(java.lang.Object,Int)Int in class A's type has changed; was (java.lang.Object,Int)Int, is now: (Int,java.lang.Object)Int | ||
method foo(java.lang.Object,Int)Int in class A's type is different in new version, where it is (Int,java.lang.Object)Int instead of (java.lang.Object,Int)Int |
2 changes: 1 addition & 1 deletion
2
...rter/functional-tests/src/test/class-narrowing-method-type-in-new-version-ok/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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo()Foo in class A has now a different result type; was: Foo, is now: Bar | ||
method foo()Foo in class A has a different result type in new version, where it is Bar rather than Foo |
2 changes: 1 addition & 1 deletion
2
...rter/functional-tests/src/test/class-widening-method-type-in-new-version-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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo()Int in class A has now a different result type; was: Int, is now: java.lang.Object | ||
method foo()Int in class A has a different result type in new version, where it is java.lang.Object rather than Int |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/trait-abstract-method-becomes-concrete2-ok/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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo()Int in trait A1 does not have a correspondent in old version | ||
method foo()Int in trait A1 is present only in new version |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/trait-abstract-val-become-concrete-ok/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 |
---|---|---|
@@ -1 +1 @@ | ||
synthetic method A$_setter_$foo_=(Int)Unit in trait A does not have a correspondent in old version | ||
synthetic method A$_setter_$foo_=(Int)Unit in trait A is present only in new version |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/trait-added-method-in-new-version-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 |
---|---|---|
@@ -1 +1 @@ | ||
method bar()Int in trait A does not have a correspondent in old version | ||
method bar()Int in trait A is present only in new version |
4 changes: 2 additions & 2 deletions
4
reporter/functional-tests/src/test/trait-added-val-in-new-version-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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
synthetic method A$_setter_|_=(Int)Unit in trait A does not have a correspondent in old version | ||
method bar()Int in trait A does not have a correspondent in old version | ||
synthetic method A$_setter_|_=(Int)Unit in trait A is present only in new version | ||
method bar()Int in trait A is present only in new version |
4 changes: 2 additions & 2 deletions
4
reporter/functional-tests/src/test/trait-added-var-in-new-version-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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
method bar_=(Int)Unit in trait A does not have a correspondent in old version | ||
method bar()Int in trait A does not have a correspondent in old version | ||
method bar_=(Int)Unit in trait A is present only in new version | ||
method bar()Int in trait A is present only in new version |
2 changes: 1 addition & 1 deletion
2
reporter/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 |
---|---|---|
@@ -1 +1 @@ | ||
classes mixing B needs to update body of method foo()Int | ||
in new version, classes mixing B needs to update body of method foo()Int |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/trait-method-overloading-is-ok/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 |
---|---|---|
@@ -1 +1 @@ | ||
method foo(java.lang.Object)Int in trait A does not have a correspondent in old version | ||
method foo(java.lang.Object)Int in trait A is present only in new version |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/trait-moving-methods-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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
method foo()Int in trait A does not have a correspondent in new version | ||
method foo()Int in trait B does not have a correspondent in old version | ||
method foo()Int in trait B is present only in new version |
2 changes: 1 addition & 1 deletion
2
reporter/functional-tests/src/test/trait-pushing-up-abstract-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 |
---|---|---|
@@ -1 +1 @@ | ||
abstract method foo()Int in interface A does not have a correspondent in old version | ||
abstract method foo()Int in interface A is present only in new version |
4 changes: 2 additions & 2 deletions
4
reporter/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
method foo()Int in trait A does not have a correspondent in old version | ||
classes mixing B needs to update body of method foo()Int | ||
method foo()Int in trait A is present only in new version | ||
in new version, classes mixing B needs to update body of method foo()Int |
2 changes: 1 addition & 1 deletion
2
...functional-tests/src/test/type-parameters-change-breaks-method-signature-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 |
---|---|---|
@@ -1 +1 @@ | ||
method contains(NodeImpl)Boolean in class Tree's type has changed; was (NodeImpl)Boolean, is now: (Node)Boolean | ||
method contains(NodeImpl)Boolean in class Tree's type is different in new version, where it is (Node)Boolean instead of (NodeImpl)Boolean |
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
Oops, something went wrong.