"(Lambda Expression)#method" or "(Method or Constructor Reference)#method" causes javac to throw NullPointerException
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Jan 26 05:51:32 PST 2012
On 26/01/12 13:01, bitter_fox wrote:
> public class Main
> {
> interface SAM
> {
> void invoke();
> }
>
> public static void main(String[] args)
> {
> SAM sam = ((SAM)() -> {})#invoke;
> }
> }
Thanks for the report and the test case, I found a fix - I will test it
and push it soon.
Maurizio
More information about the lambda-dev
mailing list