-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 1.3.0
-
Component/s: core-libs
-
b05
-
generic
-
generic
-
Verified
Let p = new SocketPermission("invalidhost", "connect"). Then p.implies(p) is false unless -DtrustProxy=true, yet p.equals(p) is true. It seems quite strange to have
p.equals(p) && !p.implies(p)
for any permission class. To my mind, the definition of equals for all Permission classes should be p.equals(q) iff p.implies(q) and q.implies(p).
p.equals(p) && !p.implies(p)
for any permission class. To my mind, the definition of equals for all Permission classes should be p.equals(q) iff p.implies(q) and q.implies(p).
- relates to
-
JDK-6501746 Update specification of SocketPermission.implies
-
- Open
-