Created
February 5, 2016 20:54
-
-
Save terabyte/9df95bdd3eabe2246c0c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import java.util.ArrayList; | |
class A { | |
interface Function<B, C> { | |
C apply(B input); | |
} | |
private <B,C> Iterable<C> transform(Iterable<B> iterable, Function<? super B, ? extends C> transform) { | |
// impl not relevant for bug | |
return new ArrayList<>(); | |
} | |
public static class In<V> {} | |
public static class Out<V> {} | |
public <V> Out<V> fn(In<V> in) { | |
return null; | |
} | |
public void myMethod() { | |
Iterable<In<?>> ins = new ArrayList<>(); | |
Iterable<Out<?>> outs = transform(ins, this::fn); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Sun Java 1.8.0_45:
javac A.java => success
Using ECJ 4.6M5:
java -jar ecj-4.6M5.jar -source 1.8 -target 1.8 A.java => failure
Output: