Details
-
Bug
-
Resolution: Done
-
Major
-
1.0.1.Final
-
None
-
None
Description
Decorators of a passivation capable bean must be passivation capable as well. This includes a check as to whether their injection points are passivation capable. In the current implementation, an @Inject @Delegate @Any delegation point will be reported as an ambiguous dependency, although this does not happen elsewhere.
Solution: @Inject @Delegate injection points must not be checked for passivation capability. The decorator being validated has already been selected because it decorates a passivation capable bean, so we know that the delegate is passivation capable (even if we deal with a chain of decorators, all decorators must be passivation capable).
Attachments
Issue Links
- is duplicated by
-
WELD-486 Ambiguous dependency when using a decorator
- Closed