Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-306

KeySelectors loop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Java 1.4.6, Java 1.5.1
    • Fix Version/s: Java 1.4.7, Java 1.5.2
    • Component/s: Java
    • Security Level: Public (Public issues, viewable by everyone)
    • Labels:
      None

      Description

      At javax\xml\crypto\test\KeySelectors.java we have

      X509CRL crl = null;
      // Looking for CRL before finding certificates
      for (int i = 0; (i < entries.length && crl != null); i++) {
      if (entries[i] instanceof X509CRL)

      { crl = (X509CRL) entries[i]; }

      }

      Should "i < entries.length && crl != null" be replaced with "i < entries.length && crl == null" ? Am i missing something?

      Thank you.

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              rui.caridade Rui Caridade
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: