spring-projects/spring-data-commons — pull request #86 by thomasdarimont (2014-06-12 10:44:52+00:00)
Title: DATACMNS-518 - Spring Data Infinite Loop in HashMap in PreferredConstructor.

DATACMNS-518 - Spring Data Infinite Loop in HashMap in PreferredConstructor.

We now synchronise the (seldom) writes to the isPropertyParameterCache HM in PreferredConstructor. We could as well have used a CHM here without the need for a synchronized-Block but this would potentially waste memory for a mostly read-only data structure. We also anticipate potential multiple writes for the same property.