What you see is a compilation error, and not just a warning (warning will not lead to compilation failure).
And no, this is unlikely to be a mistake in the eclipse. The List type probably does not declare any type parameters, because you imported java.awt.List instead of java.util.List .
source share