lambda bug - lambda expression in instance initializer in anon/local class
Stuart Marks
stuart.marks at oracle.com
Mon Sep 9 17:49:32 PDT 2013
This one *seems* to be fixed in b106. It seems very similar to
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8020715
Just in case, I've filed the following bug (though it might end up
getting closed as a duplicate):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8024498
Thanks,
s'marks
On 9/6/13 8:10 PM, Zhong Yu wrote:
> This code crashes javac (jdk8 ea build 105)
>
> public class Tmp
> {
> void test()
> {
> new Object()
> {
> Runnable r = ()->{};
> };
>
> class X
> {
> Runnable r = ()->{};
> }
> }
> }
>
More information about the lambda-dev
mailing list