On Wed, Aug 2, 2017 at 7:17 PM, Emmanuel Bernard <emmanuel(a)hibernate.org>
wrote:
You would need to hardcode the definition of Object in HV's code.
It's
unclear to me that it would not be detrimental. I'd keep the model generic.
And favor metadata recomputation over caching.
I went the "only cache the Object metadata" road (but it's not hardcoded):
https://github.com/hibernate/hibernate-validator/pull/826/files
It will mitigate a bit the removal of the cache.
--
Guillaume