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

PrivateCredentialPermission.equals doesn't ignore principal order

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.0
    • security-libs
    • None
    • merlin
    • generic
    • generic

      This may fall in the truth and beauty column, but it seems to me that for PrivateCredentialPermission, a.equals(b) should be true if and only if a.implies(b) and b.implies(a) are both true. (This seems to me like the right generic definition of Permission.equals.) Currently, two instances that differ merely in the order of principals, such as targets
          baz foo \"foo\" bar \"bar"
      and
          baz bar \"bar\" foo \"foo\"
      and not considered equal (according to the equals method), nor do they hash the same, even though they imply each other.

            claisunw Charlie Lai (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: