-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #6060.
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import java.util.Spliterator; | ||
import java.util.function.Consumer; | ||
import org.checkerframework.checker.tainting.qual.Untainted; | ||
|
||
public interface TaintingIssue6060<R> extends Iterable<@Untainted R> { | ||
|
||
default Spliterator<@Untainted R> spliterator() { | ||
return Iterable.super.spliterator(); | ||
} | ||
|
||
default Spliterator<R> spliterator2() { | ||
// :: error: (return) | ||
return Iterable.super.spliterator(); | ||
} | ||
|
||
default Spliterator<R> spliterator3() { | ||
// :: error: (return) | ||
return this.spliterator(); | ||
} | ||
|
||
// :: error: (override.param) | ||
default void forEach(Consumer<? super R> action) { | ||
Iterable.super.forEach(action); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import java.util.Spliterator; | ||
import java.util.function.Consumer; | ||
|
||
public interface Issue6060<R> extends Iterable<R> { | ||
|
||
default Spliterator<R> spliterator() { | ||
return Iterable.super.spliterator(); | ||
} | ||
|
||
default void forEach(Consumer<? super R> action) { | ||
Iterable.super.forEach(action); | ||
} | ||
} |