<html><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:8pt"><div class="" style="">Hi!</div><div class="" style=""><br class="" style=""></div><div style="background-color: transparent;" class="">I struggle with a few TCK tests which assume that in Decorators and Interceptors you can have an @Inject ct which has a valid InjectionPoint.</div><div style="background-color: transparent;" class="">But I cannot find in the spec how this is supposed to work.</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">5.5.7 defines in which situations the CDI container must create an InjectionPoint:</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">----</div><div
 style="background-color: transparent;" class="">An instance of InjectionPoint may represent:</div><div style="background-color: transparent;" class="">• an injected field or a parameter of a bean constructor, initializer method, producer method, disposer method or observer method, or</div><div style="background-color: transparent;" class="">• an instance obtained dynamically using Instance.get().</div><div style="background-color: transparent;" class="">----</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">But if you e.g. look at&nbsp;</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">&nbsp; &nbsp; @Inject</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; public OrderedEventDeliveryDecorator(@Delegate Event&lt;T&gt; delegate, InjectionPoint ip,
 BeanManager manager,</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OrderedEventDeliveryExtension extension)</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div style="background-color: transparent;" class="">then this does not fit any requirement imo. Because the Decorator is a dependent bean on the decorated contextual instance.</div><div style="background-color: transparent;" class="">Thus it's 'internal' and does not have any InjectionPoint. This would be different if you would @Inject the Decorator into some other bean...</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"
 class="">The TCK test in question is ComplexEventDecoratorTest#testOrderedEvents</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">Did I overlook something?</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family:
 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">LieGrue,</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">strub</div><div style="color: rgb(0, 0, 0); font-size: 11px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div></div></body></html>