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

changeset 1127
ca49d50318dc
parent 962
0ff2bbd38f10
child 1157
3809292620c9
equal deleted inserted replaced
1126:11c184155128 1127:ca49d50318dc
226 * This is usually the environment's scope, except for class environments, 226 * This is usually the environment's scope, except for class environments,
227 * where the local scope is for type variables, and the this and super symbol 227 * where the local scope is for type variables, and the this and super symbol
228 * only, and members go into the class member scope. 228 * only, and members go into the class member scope.
229 */ 229 */
230 Scope enterScope(Env<AttrContext> env) { 230 Scope enterScope(Env<AttrContext> env) {
231 return (env.tree.getTag() == JCTree.CLASSDEF) 231 return (env.tree.hasTag(JCTree.Tag.CLASSDEF))
232 ? ((JCClassDecl) env.tree).sym.members_field 232 ? ((JCClassDecl) env.tree).sym.members_field
233 : env.info.scope; 233 : env.info.scope;
234 } 234 }
235 235
236 /* ************************************************************************ 236 /* ************************************************************************

mercurial