S
Steve Green
I am using the current stable release of Eclipse 3.1. I know it is not
finalized yet but I am new to generics and am not sure if I am bouncing up
against a bug or a mistake in my code.
The following code is reported back as an error by Eclipse.
HashMap<String,MDDatabase> hm = new HashMap<String,MDDatabase>();
Iterator<MDDatabase> it = s.getDatabases().entrySet().iterator();
Shouldn't entrySet() return an iterator to the type MDDatabase?
It is saying that it should be Map.Entry<String,MDDatabase>.
Steve
finalized yet but I am new to generics and am not sure if I am bouncing up
against a bug or a mistake in my code.
The following code is reported back as an error by Eclipse.
HashMap<String,MDDatabase> hm = new HashMap<String,MDDatabase>();
Iterator<MDDatabase> it = s.getDatabases().entrySet().iterator();
Shouldn't entrySet() return an iterator to the type MDDatabase?
It is saying that it should be Map.Entry<String,MDDatabase>.
Steve