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

后端 未结 13 476
清酒与你
清酒与你 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条回答
  •  眼角桃花
    2020-12-05 03:44

    make java buildpath reference to greater than or equal to java 1.5

    or you try to add the "import java.util.List" statement then you can see that

    eclipse is saying it is conflicting with some other List type

    for example it may be conflicting with com.lowagie.xx.xxx.List etc try to avoid these import

    statements

提交回复
热议问题