| Summary: | Generic Predicates Compilation Error | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Roberto Salazar <robertorenesc> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | stephan.herrmann |
| Version: | 4.7.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
No need to mark as blocker, every compiler bug is perceived as blocker by someone, so this doesn't help to prioritize. Moreover, we don't even know for sure if this is a bug in ecj at all. Chances are, that rejecting the program is the right thing to do per JLS. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
I am having this error: This is the code: public Argument0 onlyIf(Predicate<Pair<Entity, Context>> predicate) { return new Argument0(context -> elements.apply(context) .map(node -> Pair.of(node, context)) .filter(predicate) .map(Pair::getLeft)); } The error that Eclipse shows me in the ".filter" method is: The method filter(Predicate<? super Pair<capture#3-of ? extends Entity,Context>>) in the type Stream<Pair<capture#3-of ? extends Entity,Context>> is not applicable for the arguments (Predicate<Pair<Entity,Context>>) Checking the types sent we have this: predicate type: Predicate< Pair< Entity,Context>> parameter type: Predicate<? super Pair<? extends Entity,Context>> It works when I compile from command line or if I use another IDE (Like IntelliJ yuwwww...), I cannot change this code because is inherited. So I think this is an error in Eclipse