Copying PathImpl results in hashCode==0

Description

Function PathImpl.createCopy(PathImpl path) creates new PathImpl that has hashCode==0. This value is fixed and never changes (due to the algorithm in hascode() funcion). The correct value after copying should have been -1 or the same value as in the source object.

The problematic PathImpl with the zero hashCode is unfortunately returned from the validate() function:

Test:

Environment

None

Status

Assignee

Unassigned

Reporter

Jiri Bilek

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure