Xavier Dury thanks for trying!
lambdas or final classes (WELD-001503)
Yea, lambdas and final classes cannot be intercepted - ultimately you still need to create some form of a subclass to enable interception which in case of final classes is, by definition, not possible.
classes which don't have a default constructor/injected constructor (NPE)
Again, same as above, you need a wrapper class extending the original (which implies calling the original constructor) As a matter of fact, this was there even before as it is spec based, see this CDI spec chapter, part about createInterceptedInstance(). Though the NPE is not nice and should be taken care of. I'll see what we can do about that. |