Skip to content

Instantly share code, notes, and snippets.

@spullara
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spullara/11097851 to your computer and use it in GitHub Desktop.
Save spullara/11097851 to your computer and use it in GitHub Desktop.
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