Handle all parse errors,esp.those throws by the ANTLR parser on a

syntax error (see bug request id 694111).
This commit is contained in:
rickgiles 2003-02-28 18:24:31 +00:00
parent c98225cc51
commit c6aaeb97cc
1 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,11 @@ public final class TreeWalker
"general.exception",
new String[] {te.getMessage()}));
}
catch (Throwable err) {
mMessages.add(new LocalizedMessage(0, Defn.CHECKSTYLE_BUNDLE,
"general.exception",
new String[] {"" + err}));
}
if (mMessages.size() == 0) {
mCache.checkedOk(fileName, timestamp);