Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2724

Wrong argument check in BTreeManager constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2
    • jackrabbit-jcr-commons
    • None

    Description

      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"); }

      Attachments

        Activity

          People

            mduerig Michael Dürig
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: