¡@

Home 

java Programming Glossary: iinsttype

Assigning a generic List to a concrete ArrayList is causing a compile-time error

http://stackoverflow.com/questions/20037561/assigning-a-generic-list-to-a-concrete-arraylist-is-causing-a-compile-time-error

to why is the line below invalid List AbstractInst extends IInstType insts new ArrayList MIPSInst I'm getting a compile time error.. MIPSInst cannot be converted to List AbstractInst extends IInstType . The class MIPSInst extends AbstractInst MIPSInstType and MIPSInstType.. AbstractInst MIPSInstType and MIPSInstType implements IInstType . I've read through the Oracle documentation on generics but..