tag:blogger.com,1999:blog-2851346645716316669.post6808983268432313647..comments2023-05-25T01:06:16.047-07:00Comments on Programmer's Chronicles: Unexpected generics behaviourKirhttp://www.blogger.com/profile/01179746921950113016noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2851346645716316669.post-26997849997626377082010-03-15T03:45:15.463-07:002010-03-15T03:45:15.463-07:00Finally, I have decided this is bug - compiler cle...Finally, I have decided this is bug - compiler cleans all generics when raw type is used. Remedy is to use ComplexObject1 &lt?> complexObject1 = null;<br />I posted this as bug on sun, hope they will fix problem.Kirhttps://www.blogger.com/profile/01179746921950113016noreply@blogger.comtag:blogger.com,1999:blog-2851346645716316669.post-41300918412547235722010-03-15T01:58:00.500-07:002010-03-15T01:58:00.500-07:00Another discussions
http://stackoverflow.com/quest...Another discussions<br />http://stackoverflow.com/questions/2445516/unexpected-generics-behaviour<br /><br />http://community.livejournal.com/ru_java/913723.html#cutid1Kirhttps://www.blogger.com/profile/01179746921950113016noreply@blogger.comtag:blogger.com,1999:blog-2851346645716316669.post-4861719318062831312010-03-14T23:37:55.196-07:002010-03-14T23:37:55.196-07:00Thanks Shams, yes your solution works, but the thi...Thanks Shams, yes your solution works, but the thing I realy want is to use ComplexObject1 in most general way, and the thing I realy missed is why defined generic type(... extends BuisnessObject) is lostKirhttps://www.blogger.com/profile/01179746921950113016noreply@blogger.comtag:blogger.com,1999:blog-2851346645716316669.post-25959548442058984982010-03-12T14:27:03.731-08:002010-03-12T14:27:03.731-08:00Blogspot ate up my angle brackets
ComplexObject1&...Blogspot ate up my angle brackets<br /><br />ComplexObject1<SomeInterface> complexObject1 = null;Shamshttps://www.blogger.com/profile/10301627897367423203noreply@blogger.comtag:blogger.com,1999:blog-2851346645716316669.post-9802816603693684772010-03-12T14:26:17.846-08:002010-03-12T14:26:17.846-08:00Not sure what is wrong, but this seems to fix the ...Not sure what is wrong, but this seems to fix the problem:<br /><br />ComplexObject1 complexObject1 = null;Anonymousnoreply@blogger.com