Are you certain that your Eclipse setup is using the same JDK you are using on the command line?
Cheers Daniel On Sat, May 21, 2011 at 4:08 PM, Thibaut Robert <[email protected]> wrote: > hi, > > I had this problem too. It's not warning but really a compilation error (ie > can't be removed by an annotation or config) > I ended up modifying the code in some way to make eclipse happy :( > > -- > Thibaut > > On Sat, May 21, 2011 at 9:52 AM, Romain Manni-Bucau > <[email protected]>wrote: > >> hi, >> >> the suppress warning was here for that, maybe eclipse needs a diiferent >> one. >> Nothing is adviced by eclipse? >> >> - Romain >> >> 2011/5/21 Karan Malhi <[email protected]> >> >> > Checked out the latest source. It compiles fine in maven command line, >> > however when i import it into eclipse, I get an error in line 109 >> > of org.apache.openejb.assembler.classic.ValidationBuilder. The compile >> > error >> > appears at the following piece of code:- >> > *target = Validation.byProvider(clazz).configure();* >> > >> > The compile error is : >> > *Bound mismatch: The generic method byProvider(Class<U>) of type >> Validation >> > is not applicable for the arguments (Class<capture#7-of ? extends >> > ValidationProvider>). The inferred type Configuration<Configuration<T>> >> is >> > not a valid substitute for the bounded parameter <T extends >> > Configuration<T>>* >> > >> > Can somebody suggest a fix.? >> > >> > -- >> > Karan Singh Malhi >> > >> >
