<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
This was supposed to be fixed by
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/CDI-78">https://issues.jboss.org/browse/CDI-78</a> (see
<a class="moz-txt-link-freetext" href="https://github.com/cdi-spec/cdi/pull/21/files">https://github.com/cdi-spec/cdi/pull/21/files</a>) but it seems the
proposed changes never actually got to the specification although
the issue is marked as resolved :-/<br>
<br>
Jozef<br>
<br>
<div class="moz-cite-prefix">On 07/08/2014 08:58 AM, Mark Struberg
wrote:<br>
</div>
<blockquote
cite="mid:1404802739.30206.YahooMailNeo@web28903.mail.ir2.yahoo.com"
type="cite">
<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 </div>
<div style="background-color: transparent;" class=""><br
class="" style="">
</div>
<div style="background-color: transparent;" class=""> @Inject</div>
<div style="background-color: transparent;" class=""> public
OrderedEventDeliveryDecorator(@Delegate Event<T>
delegate, InjectionPoint ip, BeanManager manager,</div>
<div style="background-color: transparent;" class="">
OrderedEventDeliveryExtension extension)</div>
<div style="background-color: transparent;" class="">
</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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cdi-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></pre>
</blockquote>
<br>
</body>
</html>