forked from opprop/checker-framework
-
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.
typetools/checker-framework 3.21.0 release (opprop#142)
Co-authored-by: Suzanne Millstein <[email protected]> Co-authored-by: Michael Ernst <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Kellogg <[email protected]>
- Loading branch information
1 parent
e392e14
commit 13d7846
Showing
48 changed files
with
1,432 additions
and
194 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
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
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
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,23 +1,13 @@ | ||
// @above-java11-jdk-skip-test until this is fixed: https://tinyurl.com/cfissue/4934 | ||
// Use of @Owning on receiver parameter doesn't work in Java 17+. | ||
// The TODO comment below might indicate that it also doesn't work before. | ||
|
||
// Tests that parameters (including receiver parameters) marked as @Owning are still checked. | ||
// Tests that parameters marked as @Owning are still checked. | ||
|
||
import org.checkerframework.checker.mustcall.qual.*; | ||
|
||
class OwningParams { | ||
static void o1(@Owning OwningParams o) {} | ||
|
||
void o2(@Owning OwningParams this) {} | ||
|
||
void test(@Owning @MustCall({"a"}) OwningParams o, @Owning OwningParams p) { | ||
// :: error: argument.type.incompatible | ||
o1(o); | ||
// TODO: this error doesn't show up! See MustCallVisitor#skipReceiverSubtypeCheck | ||
// error: method.invocation | ||
o.o2(); | ||
o1(p); | ||
p.o2(); | ||
} | ||
} |
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
Oops, something went wrong.