hibernate/hibernate-validator — pull request #158 by gunnarmorling (2012-12-12 16:58:40+00:00)
Title: HV-618

Creating this PR as base for discussion. It fixes the overriding problem using ClassMate which is added as normal dependency.

I'm still unsure though whether that's the right way. I've tried to replace our `TypeHelper` (originally from JType) with ClassMate, but ran into problems with that. ClassMate provides its own implementations of `java.lang.reflect.Type` which cause problems when it comes to comparing these types with JDK-provided instances, assignment check etc.

Tbh. I'm not sure whether we really can make use of ClassMate in all cases where we use the JType code currently, so in the worst case we'd end up with this dependency just for the overriding issue.