[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Compilation error in Java 7

Hi Hargrave,

Thanks for the reply,
I tried with the latest equinox-SDK-Luna from [1] and got it working for Java 7.

[1]. http://www.eclipse.org/downloads/download.php?file=/equinox/drops/R-Luna-201406061215/equinox-SDK-Luna.zip

Regards,
Aruna

On 22 September 2014 16:59, BJ Hargrave <hargrave@xxxxxxxxxx> wrote:
This probably has to do with compiling against classfiles built with the undocumented javac option "-targer jsr14". Such class files work fine with javac 1.6 which recognized the generics information. However javac 1.7 does not and sees the classes only a "raw" view. You either need to keep using javac 1.6 or get updated jar files which are not compiled with "-target jsr14".
--

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the
OSGi Alliance
hargrave@xxxxxxxxxx





From: Â Â Â ÂAruna Karunarathna <sujithucsc@xxxxxxxxx>
To: Â Â Â Âequinox-dev@xxxxxxxxxxx
Date: Â Â Â Â2014/09/22 06:10
Subject: Â Â Â Â[equinox-dev] Compilation error in Java 7
Sent by: Â Â Â Âequinox-dev-bounces@xxxxxxxxxxx





Hi Devs,

I have a code segment as follows.

IQuery<IInstallableUnit> it = null;

Following is my dependency

ÂÂÂÂÂÂÂ <dependency>
ÂÂÂÂÂÂÂÂÂÂÂ <groupId>org.eclipse.equinox</groupId>
ÂÂÂÂÂÂÂÂÂÂÂ <artifactId>org.eclipse.equinox.p2.metadata</artifactId>
ÂÂÂÂÂÂÂÂÂÂÂ <version>2.1.0.v20110510</version>
ÂÂÂÂÂÂÂ </dependency>


when I try to compile in Java 6 it works perfectly. But when I tried to compile with java 7 it gives me the following error.

java: type org.eclipse.equinox.p2.query.IQuery does not take parameters

Any idea what I'm doing wrong here? Do we need a later version in order to work with Java 7?


Regards,
Aruna_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev