Re: Eclipse report error when compiling

From: Tom Shi <>
Date: Mon, 28 Mar 2011 15:08:24 -0700 (PDT)

It works with Eclipse 3.4!

--- On Mon, 3/28/11, Tom Shi <> wrote:

From: Tom Shi <>
Subject: Eclipse report error when compiling
Date: Monday, March 28, 2011, 1:31 PM

After importing the Mojarra 2.0.4 into eclispe 3.6, I found the compile error about the file.

The error messages is as the followings:

Description    Resource    Path    Location    Type
The method validateValue(Class<T>, String, Object, Class<?>...) in the type Validator is not applicable for the arguments (Class, String, Object, Class[])    /Mojarra/jsf-api/src/main/java/javax/faces/validator    line 307    Java Problem

There is NO error when compiling the file using jdk1.6 from command line.

I tried to use the same jdk version  in both eclispe 3.5 and 3.6, we got the same error.

When googling the website and found the similar issues, the
 practical fix is to add the the generic into the java source code.

Any suggestions to workaround this issue will be greatly appreciated!