<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">Hi Pete,<br><br><span>I have created issue with <a target="_blank" href="https://jira.jboss.org/jira/browse/CDITCK-91">https://jira.jboss.org/jira/browse/CDITCK-91</a></span><br><br>Thks;<br><br>--Gurkan<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Pete Muir <pmuir@redhat.com><br><b><span style="font-weight: bold;">To:</span></b> David.Allen@acm.org<br><b><span style="font-weight: bold;">Cc:</span></b> Gurkan Erdogdu <gurkanerdogdu@yahoo.com>; weld-dev@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sun, January 10, 2010 5:49:37 PM<br><b><span style="font-weight:
bold;">Subject:</span></b> Re: [weld-dev] [TCK Related] Question on SimpleBeanLifecycleTest<br></font><br>Actually, I think due to the late-change we discussed the other day (about what beans are enabled), this test is wrong - if you look at 5.1.2, you'll see that beans which have been specialized (in this case Lion) are disabled, and so not returned by getBeans().<br><br>Gurkan, you know the drill, please create a CDITCK issue :-)<br><br>Thanks!<br><br>On 10 Jan 2010, at 15:30, David Allen wrote:<br><br>> On Sat, 2010-01-09 at 13:55 -0800, Gurkan Erdogdu wrote:<br>>> Hi;<br>>> <br>>> In test SimpleBeanLifecycleTest #<br>>> testSpecializedBeanExtendsManagedBean, MountainLion specializes the<br>>> Lion so the managed bean with Lion is never resolved.<br>>> <br>>> So getBeans(Lion.class, TAME_LITERAL) returns bean with MountationLion<br>>> not bean with Lion.<br>> <br>> As the test shows, both
MountainLion and Lion are returned. There are<br>> no alternatives being used here. It is strictly testing @Specializes<br>> for a managed bean, and as required by the spec, the specializing bean<br>> inherits the @Tame qualifier. That is why both beans are resolved based<br>> on the type and qualifiers specified in the test.<br>> <br>>> <br>>> Therefore assert bean != null; in the test case seems not to be<br>>> correct!<br>>> <br>>> WDYT?<br>>> <br>>> Thks;<br>>> <br>>> --Gurkan<br>>> <br>>> <br>>> <br>>> ______________________________________________________________________<br>>> Yahoo! Türkiye açıldı!<br>>> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!<br><span>>> <a target="_blank" href="http://www.yahoo.com.tr">www.yahoo.com.tr</a></span><br>>>
_______________________________________________<br>>> weld-dev mailing list<br>>> <a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>>> <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>> <br>> _______________________________________________<br>> weld-dev mailing list<br>> <a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br><br></div></div>
<!-- cg18.c1.mail.mud.yahoo.com compressed/chunked Sat Jan 9 12:36:55 PST 2010 -->
</div><br>
<hr size="1"><FONT face=Arial size=-1>Yahoo! Türkiye açıldı!<br>
Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!<br><a href="http://tr.yahoo.com/">www.yahoo.com.tr</a></font></body></html>