type Map does not take parameters ?
- From: Burkhard Hassel <nospam@xxxxxx>
- Date: Wed, 09 Aug 2006 19:57:33 +0200
Hi all,
I got a strange error message from the java 1.5.0 compiler:
"type Map does not take parameters" which Map certainly does.
The complete code was this mini class:
import java.util.*;
class AAA {
public static void main(String[] args) {
Map<Integer, String> map = new HashMap<Integer,String>();
System.out.println(map);
}
}
NB, it does not compile with the original compiler, but compiles happily within an Eclipse 3.1 environment.
And it does also compile with the original compiler when I change the reference type from Map to HashMap.
How can this be?
Yours,
Bu.
.
- Follow-Ups:
- Re: type Map does not take parameters ?
- From: Mike Schilling
- Re: type Map does not take parameters ?
- From: jagonzal
- Re: type Map does not take parameters ?
- Prev by Date: Re: Client to telnet into server and then ftp to another server
- Next by Date: Re: Client to telnet into server and then ftp to another server
- Previous by thread: Szkolenia z Microsoft Navision dofinansowane z UE - brakuje jeszcze 4 ,osob !!!
- Next by thread: Re: type Map does not take parameters ?
- Index(es):
Relevant Pages
|