[ 
https://issues.apache.org/jira/browse/LUCENE-8969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomoko Uchida updated LUCENE-8969:
----------------------------------
    Summary: Fix abusive usage of assert in ArrayUtil  (was: Fix abusive usage 
of asset in ArrayUtil)

> Fix abusive usage of assert in ArrayUtil
> ----------------------------------------
>
>                 Key: LUCENE-8969
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8969
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Tomoko Uchida
>            Priority: Minor
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to