The type Collection is not generic; it cannot be parameterized with arguments <? extends E>

后端 未结 13 478
清酒与你
清酒与你 2020-12-05 03:02

I have a strange problem with Eclipse Galileo.
I set Java 1.6 as my JRE. On this line of code

List templates = new ArrayList ();

I see

13条回答
  •  Happy的楠姐
    2020-12-05 03:34

    use "import java.util.List"

    instead of default import "import antlr.collections.List;"

    and use the JRE5 or above for generic support of collection API....

提交回复
热议问题