I work on a application 100% automatically transcoded from Cobol to Java. In many places, the COBOL have taken shortcuts to eliminate some codes: they code a which generates a return statement while there are other statements after the return.
The problem is the following: those "return" in Java means "unreachable statement" errors for all what's coming after the return in the same method.
I am fine with those errors, but my question: the compiler (OpenJDK) stops at the 1st one (while there many of those + others...). So, it's painful because I have to remove those errors one after the other and rerun the compile each time. Pretty painful !
Is there a way to tell to the compiler "don't stop at 1st error but discover them all" ?
PS: I run it via the ant . Does it make any difference than running the bare compiler from com
Thanks a lot in advance !
didier