Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314168

Update Security.insertProviderAt to specify behavior when requested position is out of range.

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 22
    • security-libs
    • None
    • behavioral
    • minimal
    • Since we are simply changing a function spec to reflect existing behavior there is no compatibility risk
    • Java API
    • SE

      Summary

      Changed the specification for Security.insertProviderAt to explain behavior when position is less than 1 or greater than n.

      Problem

      The current specification for Security.insertProviderAt does not explain the behavior when the index is less than 1 or greater than n.

      Solution

      This text was added to the function specification

      Specification

      "If the position is less than 1 or greater than n, where n is the number of providers, the provider (if not already installed) is inserted at the end of the list, or at the n + 1 position."

            bperez Ben Perez
            webbuggrp Webbug Group
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: