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:
parent
c98225cc51
commit
c6aaeb97cc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue