8275293: A change done with JDK-8268764 mismatches the java.rmi.server.ObjID.hashCode spec

Reviewed-by: rriggs, smarks
This commit is contained in:
Sergey Tsypanov 2021-10-23 21:07:58 +00:00 committed by Stuart Marks
parent c94dc2ab60
commit 5bbe4cae87

View File

@ -201,7 +201,7 @@ public final class ObjID implements Serializable {
*/
@Override
public int hashCode() {
return Long.hashCode(objNum);
return (int) objNum;
}
/**