<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Beware of type erasure in Java</title>
	<atom:link href="http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/</link>
	<description>A blog on Technology Convergence</description>
	<lastBuildDate>Sat, 31 Jul 2010 17:57:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: nasrullah</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-54899</link>
		<dc:creator>nasrullah</dc:creator>
		<pubDate>Tue, 23 Oct 2007 13:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-54899</guid>
		<description>Being  an Ubuntu user I am very happy to visit your nice blog.
Merc,i Avinash</description>
		<content:encoded><![CDATA[<p>Being  an Ubuntu user I am very happy to visit your nice blog.<br />
Merc,i Avinash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Young</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53110</link>
		<dc:creator>Eddy Young</dc:creator>
		<pubDate>Tue, 16 Oct 2007 19:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53110</guid>
		<description>@javed: Noticed that, too, but discarded it as a typo (like the capitalisation -- or lack of -- of the type parameter.</description>
		<content:encoded><![CDATA[<p>@javed: Noticed that, too, but discarded it as a typo (like the capitalisation &#8212; or lack of &#8212; of the type parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avinash</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53096</link>
		<dc:creator>avinash</dc:creator>
		<pubDate>Tue, 16 Oct 2007 18:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53096</guid>
		<description>Or, now that I think of it, this does not really matter Javed as the program does not even compile :-)</description>
		<content:encoded><![CDATA[<p>Or, now that I think of it, this does not really matter Javed as the program does not even compile <img src='http://www.noulakaz.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avinash</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53095</link>
		<dc:creator>avinash</dc:creator>
		<pubDate>Tue, 16 Oct 2007 18:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53095</guid>
		<description>Oops!</description>
		<content:encoded><![CDATA[<p>Oops!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: javed mandary</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53080</link>
		<dc:creator>javed mandary</dc:creator>
		<pubDate>Tue, 16 Oct 2007 16:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53080</guid>
		<description>Hi,
   thats so really cool.

By the way before your addAll your eggs and muffins   don&#039;t forget to initialize those lists .. dont want to get a NullPointerException do you?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
   thats so really cool.</p>
<p>By the way before your addAll your eggs and muffins   don&#8217;t forget to initialize those lists .. dont want to get a NullPointerException do you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avinash</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53045</link>
		<dc:creator>avinash</dc:creator>
		<pubDate>Tue, 16 Oct 2007 11:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-53045</guid>
		<description>Yep.

Generics in Java is a compiler feature which prevents people from adding eggs in lists of muffins.

It also allows people to remove muffins from lists of muffins without going through the Object hassle (automatic boxing and unboxing).

This is good enough I guess... for a static programming language.

No need to throw Java away yet, Selven :-)</description>
		<content:encoded><![CDATA[<p>Yep.</p>
<p>Generics in Java is a compiler feature which prevents people from adding eggs in lists of muffins.</p>
<p>It also allows people to remove muffins from lists of muffins without going through the Object hassle (automatic boxing and unboxing).</p>
<p>This is good enough I guess&#8230; for a static programming language.</p>
<p>No need to throw Java away yet, Selven <img src='http://www.noulakaz.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selven</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52924</link>
		<dc:creator>selven</dc:creator>
		<pubDate>Mon, 15 Oct 2007 16:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52924</guid>
		<description>hmmm that&#039;s not a big deal. Seeing the title i thought java had some major disadvantage and ppl have started accepting to throw that away.

+$3&#124;</description>
		<content:encoded><![CDATA[<p>hmmm that&#8217;s not a big deal. Seeing the title i thought java had some major disadvantage and ppl have started accepting to throw that away.</p>
<p>+$3|</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Young</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52921</link>
		<dc:creator>Eddy Young</dc:creator>
		<pubDate>Mon, 15 Oct 2007 15:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52921</guid>
		<description>Well, let&#039;s take a packaging example. You can have an &quot;egg packaging&quot; or you could have a &quot;package holding eggs&quot;. In the first case, the packaging would be egg-shaped to hold just eggs, whereas in the second case you&#039;re merely saying, &quot;careful there are eggs in this box&quot;. 

Generics does the second. Strong-typing does the first.</description>
		<content:encoded><![CDATA[<p>Well, let&#8217;s take a packaging example. You can have an &#8220;egg packaging&#8221; or you could have a &#8220;package holding eggs&#8221;. In the first case, the packaging would be egg-shaped to hold just eggs, whereas in the second case you&#8217;re merely saying, &#8220;careful there are eggs in this box&#8221;. </p>
<p>Generics does the second. Strong-typing does the first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avinash</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52913</link>
		<dc:creator>avinash</dc:creator>
		<pubDate>Mon, 15 Oct 2007 14:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52913</guid>
		<description>Yes,

As Madhav and Eddy pointed out, this behavior is perfectly understandable but, still, I was amazed because of my dynamic language background.

It feels so, ahem, &lt;em&gt;bizarre&lt;/em&gt; that List&lt;Egg&gt; is not a type...</description>
		<content:encoded><![CDATA[<p>Yes,</p>
<p>As Madhav and Eddy pointed out, this behavior is perfectly understandable but, still, I was amazed because of my dynamic language background.</p>
<p>It feels so, ahem, <em>bizarre</em> that List&lt;Egg&gt; is not a type&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Young</title>
		<link>http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52881</link>
		<dc:creator>Eddy Young</dc:creator>
		<pubDate>Mon, 15 Oct 2007 09:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.noulakaz.net/weblog/2007/10/14/beware-of-type-erasure-in-java/#comment-52881</guid>
		<description>All the &lt; and &gt; in my comment have been interpreted as HTML, so that part of it does not make any sense.

What I meant above is, had Java Generics been implemented for parameterised types to be completely different, backward compatibility would have been broken. In existing programs, a method expecting a &quot;list of objects&quot; as argument will no longer work with a &quot;list of eggs&quot;.

--- Eddy</description>
		<content:encoded><![CDATA[<p>All the &lt; and &gt; in my comment have been interpreted as HTML, so that part of it does not make any sense.</p>
<p>What I meant above is, had Java Generics been implemented for parameterised types to be completely different, backward compatibility would have been broken. In existing programs, a method expecting a &#8220;list of objects&#8221; as argument will no longer work with a &#8220;list of eggs&#8221;.</p>
<p>&#8212; Eddy</p>
]]></content:encoded>
	</item>
</channel>
</rss>
