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

后端 未结 13 497
清酒与你
清酒与你 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:47

    Hey, I removed the cryptic library and it didn't work. But then I put JRE System Library at the top, and it worked. Really weird.

提交回复
热议问题