Hi Guys,<br>  Recently, we noticed that JEP-140 has altered the behavior of AccessControlContext equality and comparson semantics.  To be more precisely, AccessControlContext.equals() takes fields "DomainCombiner combiner" & "ProtectionDomain[] context" and some others into consideration (both Java 7 & 8) whereas AccessControlContext.hashCode() only cares about "ProtectionDomain[] context".  This is weird.<br>
<br>My questions are:<br>1. Though spec doesn't require two objects with same hashcode are equal, what's the particular reason that field "DomainCombiner combiner" are used for equal() but not hashCode()?<br>
2. Is it expected that two AccessControlContext objects considered equal via method equals() should return same results for AccessControlContext.checkPermission()?<br><br>In addition, current JCK tests (both Java 7 & 8) validate AccessControlContext.hashCode() by calculating only field "ProtectionDomain[] context". Does it make sense to challenge JCK if I would like add more fields for hashCode calculation?<br>
<br>Your insight is appreciated.<br><br>Thanks,<br>Frank