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

Print this page

        

*** 226,236 **** * This is usually the environment's scope, except for class environments, * where the local scope is for type variables, and the this and super symbol * only, and members go into the class member scope. */ Scope enterScope(Env<AttrContext> env) { ! return (env.tree.getTag() == JCTree.CLASSDEF) ? ((JCClassDecl) env.tree).sym.members_field : env.info.scope; } /* ************************************************************************ --- 226,236 ---- * This is usually the environment's scope, except for class environments, * where the local scope is for type variables, and the this and super symbol * only, and members go into the class member scope. */ Scope enterScope(Env<AttrContext> env) { ! return (env.tree.getTag() == JCTree.Tag.CLASSDEF) ? ((JCClassDecl) env.tree).sym.members_field : env.info.scope; } /* ************************************************************************