--- 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 {