You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomoko Uchida (Jira)" <ji...@apache.org> on 2019/09/06 09:50:00 UTC

[jira] [Created] (LUCENE-8969) Fix abusive usage of asset in ArrayUtils

Tomoko Uchida created LUCENE-8969:
-------------------------------------

             Summary: Fix abusive usage of asset in ArrayUtils
                 Key: LUCENE-8969
                 URL: https://issues.apache.org/jira/browse/LUCENE-8969
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Tomoko Uchida


Methods in {{o.a.l.util.ArrayUtil}} uses {{assert}} statements for argument checks.
 It would be suitable to throw \{{IllegalArgumentExceptions}}s instead of assertions here, to improve traceability when the violations occur? Sometimes I had difficulty in identifying the cause of assertion errors...



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org