langtools/src/share/classes/com/sun/tools/javac/comp/Enter.java
changeset 10950 e87b50888909
parent 9087 e9e44877cd18
child 11314 b612aaca08d0
equal deleted inserted replaced
10949:42f7cc0468dd 10950:e87b50888909
   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 /* ************************************************************************