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

changeset 1555
762d0af062f5
parent 1550
1df20330f6bd
child 1562
2154ed9ff6c8
equal deleted inserted replaced
1554:5125b9854d07 1555:762d0af062f5
1097 // let the owner of the environment be a freshly 1097 // let the owner of the environment be a freshly
1098 // created BLOCK-method. 1098 // created BLOCK-method.
1099 Env<AttrContext> localEnv = 1099 Env<AttrContext> localEnv =
1100 env.dup(tree, env.info.dup(env.info.scope.dupUnshared())); 1100 env.dup(tree, env.info.dup(env.info.scope.dupUnshared()));
1101 localEnv.info.scope.owner = 1101 localEnv.info.scope.owner =
1102 new MethodSymbol(tree.flags | BLOCK, names.empty, null, 1102 new MethodSymbol(tree.flags | BLOCK |
1103 env.info.scope.owner); 1103 env.info.scope.owner.flags() & STRICTFP, names.empty, null,
1104 env.info.scope.owner);
1104 if ((tree.flags & STATIC) != 0) localEnv.info.staticLevel++; 1105 if ((tree.flags & STATIC) != 0) localEnv.info.staticLevel++;
1105 1106
1106 // Attribute all type annotations in the block 1107 // Attribute all type annotations in the block
1107 memberEnter.typeAnnotate(tree, localEnv, localEnv.info.scope.owner); 1108 memberEnter.typeAnnotate(tree, localEnv, localEnv.info.scope.owner);
1108 annotate.flush(); 1109 annotate.flush();

mercurial