Skip to content

Instantly share code, notes, and snippets.

@spullara spullara/JavacBug.java
Last active Aug 29, 2015

Embed
What would you like to do?
Lambda Javac Bug
package lambda;
public class JavacBug {
interface Function<T, V> extends PartialFunction<T, V> {
V apply(T paramT);
}
interface PartialFunction<T, V> {
V apply(T paramT) throws Exception;
}
interface Runner {
<T> T run(Function<? super Object, T> tFunction);
}
public static void main(String[] args) {
Runner runner = null;
runner.run(tx -> {
tx.hashCode();
return null;
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.