pfirmstone / JGDMS

Infrastructure for providing secured micro services, that are dynamically discoverable and searchable over ipv6 networks
https://pfirmstone.github.io/JGDMS/
Apache License 2.0
14 stars 4 forks source link

org.apache.river.api.security.UnresolvedPrincipal breaks equals contract #134

Closed pfirmstone closed 3 years ago

pfirmstone commented 3 years ago

Describe the bug UnresolvedPrincipal implements equals in a broken way, such that this.equals(that) returns true, while that.equals(this) returns false, where this is an instance of UnresolvedPrincipal and that is another subclass of Principal.

Expected behavior

if this.equals(that), then that.equals(this).