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.

Reply via email to