jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] Created: (JCR-2724) Wrong argument check in BTreeManager constructur
Date Mon, 23 Aug 2010 15:40:19 GMT
Wrong argument check in BTreeManager constructur 
-------------------------------------------------

                 Key: JCR-2724
                 URL: https://issues.apache.org/jira/browse/JCR-2724
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jcr-commons
    Affects Versions: 2.2.0
            Reporter: Michael Dürig
            Assignee: Michael Dürig


In the constructor of BTreeManager the argument check on maxChildren and minChildren is wrong.
Instead of

        if (2 * minChildren < maxChildren) {
            throw new IllegalArgumentException("maxChildren must be at least twice minChildren");
        }

it should be

        if (2 * minChildren > maxChildren) {
            throw new IllegalArgumentException("maxChildren must be at least twice minChildren");
        }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message