This patch will avoid the emitter phase when the compile phase sees
a compiler error. There is no point in trying to write out a .class file
when the compiler has already run into an error.
Description
This patch will avoid the emitter phase when the compile phase sees
a compiler error. There is no point in trying to write out a .class file
when the compiler has already run into an error.
Arno Unkrig added a comment - 16/May/06 03:10 PM Very good.
In fact, "Compiler" already has something similar ("setStopCompiling()"), but
(A) It does not work properly (you get all kinds of errors from the flow analysis
(B) It is limited to Compiler and does not help with *Evaluator and SimpleCompiler
So I removed "Compiler.setStopCompiling()" and consorts and applied your patch. (I changed the flag to a counter of errors.)
Will be released in version 2.4.4 (not scheduled yet - CODEHAUS CVS is currently down).
Very good.
In fact, "Compiler" already has something similar ("setStopCompiling()"), but
(A) It does not work properly (you get all kinds of errors from the flow analysis
(B) It is limited to Compiler and does not help with *Evaluator and SimpleCompiler
So I removed "Compiler.setStopCompiling()" and consorts and applied your patch. (I changed the flag to a counter of errors.)
Will be released in version 2.4.4 (not scheduled yet - CODEHAUS CVS is currently down).