-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
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.