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

Provider.putService() should check that service belongs to this provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • security-libs
    • None
    • beta
    • generic
    • generic

      Provider.putService(Service s) should include a check like

      if (s.getProvider() != this) {
         throw new IllegalArgumentException("Service must be associated with this provider object");
      }

      Registering a service from another provider is not sensible and should be disallowed.

            andreas Andreas Sterbenz
            andreas Andreas Sterbenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: