TRUNK-3955 - Unrelated types in equals call