CauseParameterInExceptionCheck: ArrayIndexOutOfBoundsException #589
Comments
rnveach
added a commit
to rnveach/sevntu.checkstyle
that referenced
this issue
May 26, 2017
…eterInException
romani
added a commit
that referenced
this issue
May 26, 2017
fix is merged |
kariem
added a commit
to kariem/sevntu.checkstyle
that referenced
this issue
Jul 26, 2018
…eterInException
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Identified at #571 (comment) , and was able to reproduce with the latest version of checkstyle in report http://rveach.no-ip.org/checkstyle/regression/reports/61/apache-ant/index.html#A4
Exception is happening because the field
exceptionClassesToWarn
isn't being cleared when processing multiple files when an exception is thrown on the previous file's run. The problem is only surfacing because ofhaltOnException
being off.finishTree
shouldn't be used to reset instance fields. It is not guaranteed to always be called, like on an exception.Here is the source of the
checkstyle-result.xml
:Reports don't show file's order of execution, only the XML result file does.
Previous file's exception was an NPE in
NoNullForCollectionReturnCheck
when processingIPlanetEjbc.java
.Once it was fixed,
ArrayIndexOutOfBoundsException
disappeared from reports.The text was updated successfully, but these errors were encountered: