Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Type mismatch error only under Eclipse 3.1.1 using jdk1.5.0_05
Type mismatch error only under Eclipse 3.1.1 using jdk1.5.0_05 [message #599593] Sat, 19 November 2005 21:52
IchBin is currently offline IchBinFriend
Messages: 30
Registered: July 2009
Location: Drexel Hill Pa USA

Hello all,

I submitted this question to eclipse.newcomer but no answer. I figured I
would send to eclipse.platform, and

My environment is Win XP SP 2, Eclipse 3.1.1, jre\jdk1.5.0_05

Problem - I am not having any compiler errors when I compile this java
package outside of Eclipse under Dos cmd prompt. Also, I am not having
any errors If I port this java package into Netbeans 5.0 Beta.

Under Eclipse I am getting a compiler error..

'Type mismatch: cannot convert from HashMap<K,V> to

Would someone know why I am having this problem only in Eclipse... It
has to be something simple like a setting not set correctly for this

In the constructor, for the class with this error, the HashMap is
defined as..

private HashMap<Contributer,ArrayList<Role>> contributers;

The method that receives the error, is defined as..

public void load() {

FileUtils.deserialize is defined as..

public static <T extends Serializable> T deserialize(String
fname,Class<? extends T> c)
FileInputStream in=null;
T obj=null;

try {
in=new FileInputStream(fname);
} catch(FileNotFoundException e) {}

try {
} catch(IOException e) {}
return obj;


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
____________________________________________________________ ______________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Previous Topic:Process Framework (EPF): Presentations
Next Topic:Type mismatch error only under Eclipse 3.1.1 using jdk1.5.0_05
Goto Forum:

Current Time: Tue May 28 09:55:36 GMT 2024

Powered by FUDForum. Page generated in 0.03833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top