I have a generic interface:
public interface DAO<T>
{
public T get(long id);
public Set<T> getAll();
public void delete(T object);
public void update(T object);
public void create(T object);
}
and an implementing class:
public class FooDAO implements DAO<Foo>
{
... implementations here ...
}
Why does eclipse tell me I have the following error:
“The type DAO is not generic; it cannot be parameterized with arguments “.
This doesn’t show up in the Problems tab and everything builds and runs just fine, but I still see the error in the editor window. What’s going on here?
As of 3/21/2011, I’ve tried all of the answers to no effect. The project runs fine, so I’m chalking this up to a bug in eclipse.