langtools/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
changeset 6594 d43f068fba19
parent 6582 c7a4fb5a2f86
child 6596 3274cf9d4873
--- a/langtools/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Tue Sep 07 17:32:52 2010 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Tue Sep 07 17:33:43 2010 +0100
@@ -1144,6 +1144,11 @@
                                   env.toplevel.sourcefile);
         try {
             attr.attribClass(env.tree.pos(), env.enclClass.sym);
+            if (errorCount() > 0 && !shouldStop(CompileState.ATTR)) {
+                //if in fail-over mode, ensure that AST expression nodes
+                //are correctly initialized (e.g. they have a type/symbol)
+                attr.postAttr(env);
+            }
             compileStates.put(env, CompileState.ATTR);
         }
         finally {