Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload/compile doesn't fit well with bean validation #139

Closed
fcamblor opened this issue Jan 5, 2015 · 1 comment
Closed

Hot reload/compile doesn't fit well with bean validation #139

fcamblor opened this issue Jan 5, 2015 · 1 comment
Labels

Comments

@fcamblor
Copy link
Contributor

fcamblor commented Jan 5, 2015

See discussion on #137 : when first POJO validation occurs, hibernate validator caches annotations metadata on the POJO class instance (see here)

If we change the POJO structure, and add/remove some validation constraints on it, hot reload/compile is triggered but these changes are not reflected during bean validation since cached annotation metadata are taken into consideration.

@fcamblor fcamblor added the bug label Jan 5, 2015
@fcamblor
Copy link
Contributor Author

My bad, seems like the issue was a false positive, hot reload works well.
Seems like the cached metadata belongs to the Validator (thus, instantiating a new Validator on each request would prevent from reusing previous constraints metadata)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant