vmware-archive / xenon

Xenon - Decentralized Control Plane Framework
Other
227 stars 97 forks source link

ReflectionUtils.setOrUpdatePropertyValue doesn't replace the Set elements #8

Closed dido2k closed 8 years ago

dido2k commented 8 years ago

In ReflectionUtils.setOrUpdatePropertyValue

This line: existingCollection.addAll((Collection) value);

will NOT replace the set elements. The opposite is described in the javadoc: "and the new values replace existing entries for a set"

Kind Regards, Diyan.

georgechrysanthakopoulos commented 8 years ago

Thank you for the item, but please use the public Pivotal Tracker for xenon: https://www.pivotaltracker.com/n/projects/1471320