Hmm, looking a bit deeper into this, it seems that the problem is really the ConstraintLocation and the missing equals (as per HV-930). Adding equals and hashCode to ConstraintLocation make the test pass w/o changes to ConstraintDescriptorImpl.
Even though annotation data is cached in Class, I don't think it matters here, in particular not w/o any instrumentation.
|