Re: [weld-dev] Class#getGenericInterfaces() on a CDI proxy

2018-03-15 Thread Martin Kouba
Hi Marko, I don't think Class#getGenericInterfaces() is defined for CDI proxies. In any case, there are some generics-related problems with proxies (see for example WELD-1539 and WELD-1914). So I would recommend to detect client proxies and subclasses and inspect the superclass (i.e. the origi

[weld-dev] Class#getGenericInterfaces() on a CDI proxy

2018-03-13 Thread Marko Bekhta
Hi all! While working on an issue [1] in Hibernate Validator, We've stumbled on, what seems to be, a bug in Weld. We have a generic interface: @ValidateOnExecution(type = { ExecutableType.NON_GETTER_METHODS, ExecutableType.GETTER_METHODS }) public interface Repeater { String repeat(@NotNull Strin