Why does a generic cast of a List<? extends Set..> to List succeed on Sun JDK 6 but fail to compile on Oracle JDK 7?

后端 未结 1 1464
感情败类
感情败类 2021-02-07 18:27

The following code

class GenericCompilationFailureDemo {
    List newList() { 
        return new ArrayList

        
1条回答
提交回复
热议问题