Open GoogleCodeExporter opened 9 years ago
Another valid Java class containing lambda expressions and for which the Null
Checker issues bogus warnings:
import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
abstract class Test {
abstract <@NonNull T> void test(T obj, Function<T, Integer> f);
void m() {
test("", s -> 1);
}
}
test("", s -> 1);
^
found : @NonNull T extends @Initialized @NonNull Object
required: @Initialized @NonNull String
test("", s -> 1);
^
found : T extends Object
required: String
Original comment by ClovisSe...@gmail.com
on 4 Oct 2014 at 9:35
Hi Clovis,
Thanks for the report! I have reproduced both of these and added test cases.
The first requires improvements to our handling of wildcard capture.
The second is fixed in our private typevariable-improvements repository which
should be merged into mainline within the next couple of releases.
Original comment by mcart...@cs.washington.edu
on 26 Jan 2015 at 6:43
Original issue reported on code.google.com by
ClovisSe...@gmail.com
on 28 Sep 2014 at 12:21