aspose file tools
The moose likes Blog around the Campfire and the fly likes The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Other » Blog around the Campfire
Bookmark "The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism" Watch "The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism" New topic
Author

The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism

Lukas Eder
Ranch Hand

Joined: Jul 22, 2013
Posts: 43
    
    4

The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism

Java 5 has introduced generic polymorphism to the Java ecosystem. This has been a great addition to the Java language, even if we’re all aware of the numerous caveats due to generic type erasure and the consequences thereof. Generic polymorphism (also known as parametric polymorphism) is usually maintained orthogonally to possibly pre-existing subtype polymorphism.

In this rather technical article, I have explained why it is difficult to correlate subtype polymorphism with generic polymorphism within the same type hierarchy.


When Java and SQL work together, great software can evolve. That's why we have created jOOQ. Follow me on blog.jooq.org
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism
 
It's not a secret anymore!