<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Martin,</p>
<p><br>
</p>
<p>Sorry, but I'm looking for a concrete answer. &nbsp;The tests you point to never test when the injection point is an Instance&lt;&gt; or Provider&lt;&gt;, e.g. the CDI built in beans.</p>
<p><br>
</p>
<p>What I'm looking for&nbsp;would be something like &quot;It should be a ParameterizedType impl that represents&nbsp;Instance&lt;Foo&gt;&quot; or &quot;It should be the class Foo.class&quot; or something else along those lines.</p>
<p><br>
</p>
<p>Thanks,</p>
<p><br>
</p>
<p>John</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Martin Kouba &lt;mkouba@redhat.com&gt;<br>
<b>Sent:</b> Monday, September 11, 2017 7:00 AM<br>
<b>To:</b> John Ament; cdi-dev<br>
<b>Subject:</b> Re: [cdi-dev] Expected value of getType() for the injection point of an Instance object</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi John,<br>
<br>
I believe it should be the required type of the injected Instance (which <br>
is the type parameter specified at the injection point - defined in <br>
&quot;5.6.1. The Instance interface&quot; and &quot;5.5.7. Injection point metadata&quot;) <br>
unless you modify the type using Instance.select().<br>
<br>
getType() is tested in:<br>
<a href="https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/injectionpoint/dynamic/DynamicInjectionPointTest.java#L74" id="LPlnk18581" previewremoved="true">https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/injectionpoint/dynamic/DynamicInjectionPointTest.java#L74</a>
<br>
<br>
and line 75<br>
<br>
getQualifiers():<br>
<a href="https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/injectionpoint/dynamic/DynamicInjectionPointTest.java#L86" id="LPlnk289162" previewremoved="true">https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/injectionpoint/dynamic/DynamicInjectionPointTest.java#L86</a>
<br>
<br>
and line 87<br>
<br>
Martin<br>
<br>
Dne 11.9.2017 v 12:40 John Ament napsal(a):<br>
&gt; Hi,<br>
&gt; <br>
&gt; <br>
&gt; I found a small issue within OWB.&nbsp; The closest found TCK test (found by <br>
&gt; Romain) is <br>
&gt; <a href="https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/injectionpoint/dynamic/DynamicInjectionPointTest.java#L99" id="LPlnk610356" previewremoved="true">
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/injectionpoint/dynamic/DynamicInjectionPointTest.java#L99</a> which
<br>
<br>
&gt; tests the Instance type, but not the value of InjectionPoint.getType(). <br>
&gt;&nbsp;&nbsp; What should be the return value of getType() here?<br>
&gt; <br>
&gt; <br>
&gt; John<br>
&gt; <br>
&gt; <br>
&gt; ------------------------------------------------------------------------<br>
&gt; NOTICE: This e-mail message and any attachments may contain <br>
&gt; confidential, proprietary, and/or privileged information which should be <br>
&gt; treated accordingly. If you are not the intended recipient, please <br>
&gt; notify the sender immediately by return e-mail, delete this message, and <br>
&gt; destroy all physical and electronic copies. Thank you.<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; cdi-dev@lists.jboss.org<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" id="LPlnk768611" previewremoved="true">
https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
&gt; <br>
&gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" id="LPlnk136576" previewremoved="true">http://www.apache.org/licenses/LICENSE-2.0.html</a>).
 For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
<br>
&gt; <br>
<br>
-- <br>
Martin Kouba<br>
Senior Software Engineer<br>
Red Hat, Czech Republic<br>
</div>
</span></font></div>
</div>
<hr>
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this
 message, and destroy all physical and electronic copies. Thank you.
</body>
</html>