File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why its called "heap pollution"?

 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

So I came across the term Heap Pollution and after googling I know what it means BUT my issue is , I couldn't relate the name with the scenario. Why its called Heap Pollution? Basically, if I were to guess what it means from the name itself I couldn't have.

Why we say heap is polluted if we are pointing to wrong parameterized structure? Like, Garbage Collection - It makes so much sense.

Also, is heap pollution word got more popular with Java 5? The behavior existed in earlier java versions too. Its just that Java 5 is now more explicitly pointing to that issue as we have Generics.

Anyways, just my thoughts at end of tiring day so may sound little off the track

Regards,
Maulin
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I bet you've never heard of Heap Global Warming, which is even worse
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic