lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4162) MathUtil is publiuc and checks parameter only with assert. Incorrect usage can easily lead to endless loop
Date Thu, 21 Jun 2012 16:21:43 GMT
Uwe Schindler created LUCENE-4162:
-------------------------------------

             Summary: MathUtil is publiuc and checks parameter only with assert. Incorrect
usage can easily lead to endless loop
                 Key: LUCENE-4162
                 URL: https://issues.apache.org/jira/browse/LUCENE-4162
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Uwe Schindler
            Priority: Critical


We should check the 2 parameters carefully before entering the loop. Those checks here cost
nothing.

Otherwise this class must be hidden, we should not offer any public method to the users that
can loop infinite without parameter checking.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message