Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 424273 - [1.8][clean up] Convert lambda to anonymous has problems with wildcards
Summary: [1.8][clean up] Convert lambda to anonymous has problems with wildcards
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-17 14:46 EST by Markus Keller CLA
Modified: 2013-12-17 14:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2013-12-17 14:46:25 EST
Convert lambda to anonymous has problems with wildcards:

package xy;
import java.util.*;
public class E {
    void foo(Integer[] ints){
        Arrays.sort(ints, (i1, i2) -> i1 - i2);
        Comparator<?> cw = (w1, w2) -> 0;
        Comparator cr = (r1, r2) -> 0;
        Comparator<? extends Number> ce = (n1, n2) -> -0;
    };
}