src/share/classes/com/sun/tools/javac/comp/Attr.java

changeset 1813
f218bb5ebd53
parent 1812
f8472e561a97
child 1820
6b48ebae2569
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Attr.java	Thu Jun 06 15:35:05 2013 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Attr.java	Thu Jun 06 15:37:23 2013 +0100
     1.3 @@ -2609,7 +2609,7 @@
     1.4                  //field initializer
     1.5                  lambdaEnv = env.dup(that, env.info.dup(env.info.scope.dupUnshared()));
     1.6                  lambdaEnv.info.scope.owner =
     1.7 -                    new MethodSymbol(0, names.empty, null,
     1.8 +                    new MethodSymbol((owner.flags() & STATIC) | BLOCK, names.empty, null,
     1.9                                       env.info.scope.owner);
    1.10              } else {
    1.11                  lambdaEnv = env.dup(that, env.info.dup(env.info.scope.dup()));

mercurial