CertPathValidatorException(... int) doc for throwing IndexOutOfBoundsExc is inc

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: security-libs
    • beta
    • sparc
    • solaris_7


      sean.mullan@ireland 2000-11-03

      The constructor for CertPathValidatorException(String, Exception, CertPath, int)
      says:

           * @throws IndexOutofBoundsException if the index is out of range
           * <code>(index < -1 || (certPath != null && index >
           * certPath.getCertificates().size())</code>

      This is incorrect. It should be (note the ">=" instead of ">"):

           * @throws IndexOutofBoundsException if the index is out of range
           * <code>(index < -1 || (certPath != null && index >=
           * certPath.getCertificates().size())</code>

      this is because getCertificates() returns a List and Lists are zero based.
      Implementation/code needs to be fixed as well.

            Assignee:
            Sean Mullan
            Reporter:
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: