maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: Generics 5 - unexpected type, found: java.lang.Object expected: reference
Date Wed, 24 Feb 2010 11:39:30 GMT
milan chudik wrote at Mittwoch, 24. Februar 2010 11:13:

> Hi guys,
> 
> I have a strange problem with one generics code found in one GWT
> library. This compile fine with java 6 but not with java 5.
> In fact I can compile it in eclipse with java 5, so this problem appears
> only when compiling with maven.

[snip]

No, it appears when you compile with the Sun compiler. Eclipse uses *never* 
the compiler of the configured JDK. Simply compile from commandline with 
javac yourself and you'll see. The Eclipse compiler is too smart regarding 
generics.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message