¡@

Home 

java Programming Glossary: datanode

Java Generics: Cannot cast List<SubClass> to List<SuperClass>?

http://stackoverflow.com/questions/3246137/java-generics-cannot-cast-listsubclass-to-listsuperclass

List SuperClass Just come across with this problem List DataNode a1 new ArrayList DataNode List Tree b1 a1 compile error incompatible.. across with this problem List DataNode a1 new ArrayList DataNode List Tree b1 a1 compile error incompatible type Where the type.. Tree b1 a1 compile error incompatible type Where the type DataNode is a subtype of Tree. public class DataNode implements Tree..