This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons 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: 41
    
    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 I have created jOOQ. Follow me on blog.jooq.org
 
wood burning stoves
 
subject: The Dangers of Correlating Subtype Polymorphism with Generic Polymorphism
 
Similar Threads
Compile-time polymorphism?
Overloading
Polymorphism question
Generic
Polymorphism at compile time?