Last active
August 29, 2015 14:00
-
-
Save spullara/11097851 to your computer and use it in GitHub Desktop.
Lambda Javac Bug
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
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