langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
equal
deleted
inserted
replaced
73 import com.sun.tools.javac.util.Name; |
73 import com.sun.tools.javac.util.Name; |
74 import com.sun.tools.javac.util.Names; |
74 import com.sun.tools.javac.util.Names; |
75 import com.sun.tools.javac.util.Options; |
75 import com.sun.tools.javac.util.Options; |
76 import com.sun.tools.javac.util.ServiceLoader; |
76 import com.sun.tools.javac.util.ServiceLoader; |
77 import static com.sun.tools.javac.code.Lint.LintCategory.PROCESSING; |
77 import static com.sun.tools.javac.code.Lint.LintCategory.PROCESSING; |
|
78 import static com.sun.tools.javac.code.Kinds.Kind.*; |
78 import static com.sun.tools.javac.main.Option.*; |
79 import static com.sun.tools.javac.main.Option.*; |
79 import static com.sun.tools.javac.comp.CompileStates.CompileState; |
80 import static com.sun.tools.javac.comp.CompileStates.CompileState; |
80 import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag.*; |
81 import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag.*; |
81 |
82 |
82 /** |
83 /** |
1077 types.newRound(); |
1078 types.newRound(); |
1078 |
1079 |
1079 boolean foundError = false; |
1080 boolean foundError = false; |
1080 |
1081 |
1081 for (ClassSymbol cs : symtab.classes.values()) { |
1082 for (ClassSymbol cs : symtab.classes.values()) { |
1082 if (cs.kind == Kinds.ERR) { |
1083 if (cs.kind == ERR) { |
1083 foundError = true; |
1084 foundError = true; |
1084 break; |
1085 break; |
1085 } |
1086 } |
1086 } |
1087 } |
1087 |
1088 |
1088 if (foundError) { |
1089 if (foundError) { |
1089 for (ClassSymbol cs : symtab.classes.values()) { |
1090 for (ClassSymbol cs : symtab.classes.values()) { |
1090 if (cs.classfile != null || cs.kind == Kinds.ERR) { |
1091 if (cs.classfile != null || cs.kind == ERR) { |
1091 cs.reset(); |
1092 cs.reset(); |
1092 cs.type = new ClassType(cs.type.getEnclosingType(), null, cs); |
1093 cs.type = new ClassType(cs.type.getEnclosingType(), null, cs); |
1093 if (cs.completer == null) { |
1094 if (cs.completer == null) { |
1094 cs.completer = initialCompleter; |
1095 cs.completer = initialCompleter; |
1095 } |
1096 } |