java - Type IQuery does not take parameters Error in org.eclipse.equinox.p2.query and org.eclipse.equinox.p2.metadata -
i using eclipse equinox dependencies in implementation , when try compile in java 7 following error. java 6 it's working perfectly.
import org.eclipse.equinox.p2.metadata.*; import org.eclipse.equinox.p2.query.iquery; public void checkinstallableunits(){ iquery<iinstallableunit> query = null; }
i using following dependency:
<dependency> <groupid>org.eclipse.equinox</groupid> <artifactid>org.eclipse.equinox.p2.metadata</artifactid> <version>2.1.0.v20110510</version> </dependency>
this has compiling against classfiles built undocumented javac option "-target jsr14". such class files work fine javac 1.6 recognized generics information. javac 1.7 not , sees classes "raw" view. either need keep using javac 1.6 or updated jar files not compiled "-target jsr14".
Comments
Post a Comment