1.1 --- a/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java Tue Sep 07 17:32:52 2010 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java Tue Sep 07 17:33:43 2010 +0100 1.3 @@ -1144,6 +1144,11 @@ 1.4 env.toplevel.sourcefile); 1.5 try { 1.6 attr.attribClass(env.tree.pos(), env.enclClass.sym); 1.7 + if (errorCount() > 0 && !shouldStop(CompileState.ATTR)) { 1.8 + //if in fail-over mode, ensure that AST expression nodes 1.9 + //are correctly initialized (e.g. they have a type/symbol) 1.10 + attr.postAttr(env); 1.11 + } 1.12 compileStates.put(env, CompileState.ATTR); 1.13 } 1.14 finally {