| Summary: | [null] display of anonymous type in error message | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Stephan Herrmann <stephan.herrmann> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | ||
| Version: | 4.5 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Too much on my plate for 4.6. Bulk deferral to 4.7 Ran out of time for 4.7. Bulk move to 4.8. bulk move out of 4.8 removing target, since no one ever complained, and also the necessary information is actually present: "corresponding supertype is 'Predicate<String>'". |
I had externally added @Nullable to the second T in Stream's Stream<T> filter(Predicate<? super T> predicate); Now this source: //--- package m7test; import java.util.function.Predicate; import java.util.stream.Stream; public class MyStreamTest { void test(Stream<String> s) { s.filter(new Predicate<String>() { public boolean test(String t) { return false; } }); } } //--- triggers this warning: Null type safety (type annotations): The expression of type '' needs unchecked conversion to conform to 'Predicate<? super @Nullable String>', corresponding supertype is 'Predicate<String>' "The type ''" is a funny way to refer to a type...