nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

javac vs. Eclipse

Von: Chris Seidel (cseidel@arcor.de) [Profil]
Datum: 18.10.2009 11:48
Message-ID: <op.u1zpjkihw1eelo@msrvcn04.localdomain>
Newsgroup: de.comp.lang.java
Hallo,

unter Eclipse kompiliert und läuft das hier einwandfrei:

private java.util.Properties contentTypes;
...

for(Entry<String, String> e : (Collection<Entry>)contentTypes.entrySet()
) {
...
}

javac sagt:


[javac] found   :

java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>>
[javac] required: java.util.Collection<java.util.Map.Entry>
[javac] 		for(Entry<String, String> e :

(Collection<Entry>)contentTypes.entrySet()) {
[javac]


^


Warum kann Eclipse das?

Danke

[ Auf dieses Posting antworten ]

Antworten