The tracking issue for the Java side PR.
Check duplicate fields when building class definition
See hazelcast/hazelcast#17682 for details.
ClassDefinitionBuider.addX methods checks if a field
is already added with same name and
throws HazelcastSerializatioException if already added.
fixes hazelcast/hazelcast#17616