< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java

Print this page
*** 56,10 ***
--- 56,11 ---
  import com.sun.tools.javac.code.DeferredCompletionFailureHandler.Handler;
  import com.sun.tools.javac.code.Scope.WriteableScope;
  import com.sun.tools.javac.code.Source.Feature;
  import com.sun.tools.javac.code.Symbol.*;
  import com.sun.tools.javac.code.Type.ClassType;
+ import com.sun.tools.javac.code.Type.ClassType.Flavor;
  import com.sun.tools.javac.code.Types;
  import com.sun.tools.javac.comp.AttrContext;
  import com.sun.tools.javac.comp.Check;
  import com.sun.tools.javac.comp.Enter;
  import com.sun.tools.javac.comp.Env;

*** 1340,11 ***
                  for (ClassSymbol cs : symtab.getAllClasses()) {
                      if (cs.classfile != null || cs.kind == ERR) {
                          Kinds.Kind symKind = cs.kind;
                          cs.reset();
                          if (symKind == ERR) {
!                             cs.type = new ClassType(cs.type.getEnclosingType(), null, cs);
                          }
                          if (cs.isCompleted()) {
                              cs.completer = initialCompleter;
                          }
                      }
--- 1341,11 ---
                  for (ClassSymbol cs : symtab.getAllClasses()) {
                      if (cs.classfile != null || cs.kind == ERR) {
                          Kinds.Kind symKind = cs.kind;
                          cs.reset();
                          if (symKind == ERR) {
!                             cs.type = new ClassType(cs.type.getEnclosingType(), null, cs, TypeMetadata.EMPTY, Flavor.X_Typeof_X);
                          }
                          if (cs.isCompleted()) {
                              cs.completer = initialCompleter;
                          }
                      }
< prev index next >