camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Compilation error on trunk with windows and java 7
Date Tue, 22 Jan 2013 10:59:33 GMT
On Tue, Jan 22, 2013 at 11:56 AM, Achim Nierbeck
<bcanhome@googlemail.com> wrote:
> afairc Java7 is more strict with generics then Java6, therefore leading to
> all kinds of awkward compiler issues.
>

Thanks and hence your suggestion to use 4.3.1 may fix this. I will
give it a try when the java6 compilation is done,
just to be sure the rest of the code works with a trashed m2 repo.



>
> 2013/1/22 Claus Ibsen <claus.ibsen@gmail.com>
>
>> On Tue, Jan 22, 2013 at 10:54 AM, Achim Nierbeck
>> <bcanhome@googlemail.com> wrote:
>> > might be an issue with generics and the official OSGi jars.
>> > Which version is the dependency set to, 4.3.0?
>> > If so switch to 4.3.1 that version supports generics.
>> >
>> > just a wild guess ;)
>> >
>>
>> I trashed my m2 repo on windows box.
>> And switched to use JDK 1.6.
>> And now it all compiles.
>>
>> Though OSGi 4.1 is still pulled down by maven during the build.
>> Not sure what has this dependency? Could it be maven-bundle-plugin or
>> something?
>>
>> Though its concerned that source code dont compile with Java7 and with
>> Java6.
>>
>>
>>
>> > regards, Achim
>> >
>> >
>> > 2013/1/22 Claus Ibsen <claus.ibsen@gmail.com>
>> >
>> >> Hi
>> >>
>> >> I get the same error with a fresh m2 repo.
>> >>
>> >>
>> >> On Tue, Jan 22, 2013 at 10:32 AM, Claus Ibsen <claus.ibsen@gmail.com>
>> >> wrote:
>> >> > Hi
>> >> >
>> >> > Just got this compilation error on my windows box, with latest code
>> >> > from trunk, using java 1.7.0_11
>> >> >
>> >> > I will trash my m2 repo and try again. Just wanted to share this as
a
>> >> concern.
>> >> >
>> >> >
>> >> > [ERROR] Failed to execute goal
>> >> > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
>> >> > (default-compile) on project camel-core-osgi: Compilation failure:
>> >> > Compilation failure:
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[38,40]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[38,111]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[51,28]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[53,32]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[76,28]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[93,28]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[95,37]
>> >> > error: type ServiceReference does not take parameters
>> >> > [ERROR]
>> >>
>> E:\workspace\camel\components\camel-core-osgi\src\main\java\org\apache\camel\core\osgi\OsgiServiceRegistry.java:[117,24]
>> >> > error: type ServiceReference does not take parameters
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Claus Ibsen
>> >> > -----------------
>> >> > Red Hat, Inc.
>> >> > FuseSource is now part of Red Hat
>> >> > Email: cibsen@redhat.com
>> >> > Web: http://fusesource.com
>> >> > Twitter: davsclaus
>> >> > Blog: http://davsclaus.com
>> >> > Author of Camel in Action: http://www.manning.com/ibsen
>> >>
>> >>
>> >>
>> >> --
>> >> Claus Ibsen
>> >> -----------------
>> >> Red Hat, Inc.
>> >> FuseSource is now part of Red Hat
>> >> Email: cibsen@redhat.com
>> >> Web: http://fusesource.com
>> >> Twitter: davsclaus
>> >> Blog: http://davsclaus.com
>> >> Author of Camel in Action: http://www.manning.com/ibsen
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> &
>> > Project Lead
>> > OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
>> > Commiter & Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>> Email: cibsen@redhat.com
>> Web: http://fusesource.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>
>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
> Commiter & Project Lead
> blog <http://notizblog.nierbeck.de/>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message