Incorrect implementation of UserType.hashCode()

Description

Current implementation is calling hashCode() on the byIdx field directly, which is an array; this yields a different hash code for if references are different, even for identical user types.

This is affecting CodecRegistry's behavior in 2.2 branch, which is critical. But it's probably affecting for 2.1 branch as well, although probably not in such a critical way.

Environment

None

Pull Requests

None
Fixed

Assignee

Alexandre Dutra

Reporter

Alexandre Dutra

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Critical
Configure