langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
changeset 30404 952a476681b2
parent 29958 3463809fbb52
child 30998 9e8f3b991f97
equal deleted inserted replaced
30403:c904bbdc5ec1 30404:952a476681b2
  2004     /** Find an unqualified type symbol.
  2004     /** Find an unqualified type symbol.
  2005      *  @param env       The current environment.
  2005      *  @param env       The current environment.
  2006      *  @param name      The type's name.
  2006      *  @param name      The type's name.
  2007      */
  2007      */
  2008     Symbol findType(Env<AttrContext> env, Name name) {
  2008     Symbol findType(Env<AttrContext> env, Name name) {
       
  2009         if (name == names.empty)
       
  2010             return typeNotFound; // do not allow inadvertent "lookup" of anonymous types
  2009         Symbol bestSoFar = typeNotFound;
  2011         Symbol bestSoFar = typeNotFound;
  2010         Symbol sym;
  2012         Symbol sym;
  2011         boolean staticOnly = false;
  2013         boolean staticOnly = false;
  2012         for (Env<AttrContext> env1 = env; env1.outer != null; env1 = env1.outer) {
  2014         for (Env<AttrContext> env1 = env; env1.outer != null; env1 = env1.outer) {
  2013             if (isStatic(env1)) staticOnly = true;
  2015             if (isStatic(env1)) staticOnly = true;