When using Hibernate Validation for Spring Bean validation:
Generic methods on Spring Beans are inconsistently validated. They are only being validated about 1 in 3 times. It appears to be dependent on the state of the Spring Context, because within a given context it will either always validate or never validate.
In the test cases: note that the number of tests run before failure is not always 1, indicating that identical tests passed at least once before failing.
OS: Mac OSX 10.8.2
OS: CentOS release 6.3 (Final)
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
Spring Version: 3.2.1.RELEASE
Hibernate Validator: 4.3.1.Final