|
I have a CDI bean on which I was calling this.getClass().getGenericSuperClass().
I recently added an interceptor for all methods on this bean. Once the bean is called through interceptors, that line throws an exception because "this.getClass()" returns my.MyBean.$Proxy$_$$_WeldSubclass" instead of returning my.MyBean.
Again, without interceptors, it returns the correct class and generic superclass, just not when being intercepted.
|