Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8243592 Subject$SecureSet::contains(null) is suboptimal
  3. JDK-8244169

Release Note: Subject$SecureSet::contains(null) is suboptimal

    XMLWordPrintable

    Details

      Description

      The `Set` implementation returned by the `getPrincipals()`, `getPublicCredentials()`, and `getPrivateCredentials()` methods of a `Subject` object now deals with null values differently. Instead of throwing a `NullPointerException`, when calling `contains()` or `remove()` on null, false is returned, when calling `containsAll()` on a collection containing null, false is returned, when calling `removeAll()` or `retainAll()` on a collection containing a null value, the null value is ignored.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: