Hi Bill,

You can find the code we're using in HV at https://github.com/hibernate/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/internal/util/classhierarchy/Filters.java#L75.

There is no binary dependency, but as Emmanuel said it's not portable.

--Gunnar


> Can you point me to this code Emmanuel?  Right now, I'm just doing:

> if (class.getName().contains("WeldClientProxy")) {}

>Not sure how reliable that is.  I want something that is not binary
> dependent.

> But, IMO, I just don't see any reason why proxy generator couldn't be fixed.

On 10/29/2013 9:53 AM, Emmanuel Bernard wrote:
> > We had the same problem in Hibernate Validator and had to make special
>> code to detect Weld proxies. A portable solution would be nice.
>>