You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com> on 2014/03/17 10:17:56 UTC

RE: Karaf & Java8

Dear Karaf-ers,

ASM 5 is released so it may be used in Karaf to get Java 8 support:

"This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).

Another major difference is that
visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
Visitors declared with the Opcodes.ASM5 version MUST use this new method instead of the deprecated one (old visitors using the Opcodes.ASM4 and using the deprecated method will continue to work). See chapters 5 and
10 of the User Guide
(http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."

I'm not familiar with ASM at all, but I would like to get Java 8 support :)

How may I help? Is there already a Karaf 3.1.0 beta version?

Regards,
JP

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : vendredi 13 décembre 2013 17:10
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

It's exactly what I suspect about Aries Proxy and ASM.

You will have a bunch of feature that won't work.

I gonna check the version range.

Regards
JB

On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>
> JP
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi 
> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf & 
> Java8
>
> Hi JP,
>
> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>
> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>
> Regards
> JB
>
> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>> It looks like ASM 5 beta supports Java8 which is great news.
>>
>> Is there a way to patch Karaf?
>>
>> Regards,
>> JP
>>
>> [@@ OPEN @@]
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> It depends if we need an ASM update or not.
>>
>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>
>> Regards
>> JB
>>
>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>
>>> JP
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>>> décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> Hi Jean-Philippe,
>>>
>>> not yet, we have to work on ASM for full support.
>>>
>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>
>>> Regards
>>> JB
>>>
>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>> Dear Karaf experts,
>>>>
>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is 
>>>> there a workaround?
>>>>
>>>> JP
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Catcha Daniel,

thanks for the update, I gonna fix that:

https://issues.apache.org/jira/browse/KARAF-2830

Regards
JB

On 03/19/2014 05:28 PM, Daniel McGreal wrote:
> If you mean the
>>              ./karaf: line 242: [: : integer expression expected
>
> it will happen on any non x.x.x version of the VM, though I don't know exactly how or why they vary. I have
>
>> Ashen:~ dan$ java -version
>> java version "1.7.0_25"
>> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
>> Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
>
>
> for example.
>
> On 19 Mar 2014, at 16:23, Jean-Baptiste Onofré wrote:
>
>> the problem only occurs with Java8 ?
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Daniel McGreal <da...@redbite.com>.
If you mean the
>             ./karaf: line 242: [: : integer expression expected

it will happen on any non x.x.x version of the VM, though I don't know exactly how or why they vary. I have

> Ashen:~ dan$ java -version
> java version "1.7.0_25"
> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)


for example.

On 19 Mar 2014, at 16:23, Jean-Baptiste Onofré wrote:

> the problem only occurs with Java8 ?


Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

the problem only occurs with Java8 ?

(I don't think so regarding the issue).

I tried just now without problem on Ubuntu, I'm testing on my CentOS VM.

Regards
JB

On 03/19/2014 01:17 PM, CLEMENT Jean-Philippe wrote:
> I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get
> the following error message:
>
>              ./karaf: line 242: [: : integer expression expected
>
> Don’t know why but karaf does not start at all.
>
> PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz
>
> Regards,
>
> JP
>
> *De :*Guillaume Nodet [mailto:gnodet@apache.org]
> *Envoyé :* mercredi 19 mars 2014 09:48
> *À :* user
> *Objet :* Re: Karaf & Java8
>
> You'll find it at the following location:
>
> http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/
>
> 2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net <ma...@nanthrax.net>]
>
> Envoyé : lundi 17 mars 2014 10:55
>
> À : user@karaf.apache.org <ma...@karaf.apache.org>
> Objet : Re: Karaf & Java8
>
> Hi JP,
>
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on
> master (especially the impact on blueprint).
>
> Regards
> JB
>
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>  > Dear Karaf-ers,
>  >
>  > ASM 5 is released so it may be used in Karaf to get Java 8 support:
>  >
>  > "This version is fully backward compatible with ASM 5.0 BETA (itself
> binary compatible with the 4.x versions) and provides full support for
> the new Java 8 class format features. However, new dynamic checks have
> been added in order to make sure that ASM version numbers (e.g.
>  > Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by
> subclasses of the ASM classes (as documented in the API).
>  >
>  > Another major difference is that
>  > visitMethodInsn(int,String,String,String) is now deprecated, and
> replaced with visitMethodInsn(int,String,String,String,boolean) -- in
> order to support invokespecial and invokestatic on interfaces in Java 8.
>  > Visitors declared with the Opcodes.ASM5 version MUST use this new
>  > method instead of the deprecated one (old visitors using the
>  > Opcodes.ASM4 and using the deprecated method will continue to work).
>  > See chapters 5 and
>  > 10 of the User Guide
>  > (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more
> details."
>  >
>  > I'm not familiar with ASM at all, but I would like to get Java 8
>  > support :)
>  >
>  > How may I help? Is there already a Karaf 3.1.0 beta version?
>  >
>  > Regards,
>  > JP
>  >
>  > -----Message d'origine-----
>  > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : vendredi
>  > 13 décembre 2013 17:10 À : user@karaf.apache.org
> <ma...@karaf.apache.org> Objet : Re: Karaf &
>  > Java8
>  >
>  > It's exactly what I suspect about Aries Proxy and ASM.
>  >
>  > You will have a bunch of feature that won't work.
>  >
>  > I gonna check the version range.
>  >
>  > Regards
>  > JB
>  >
>  > On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>  >> I found that ASM is installed as any normal bundle within Karaf. So
> I installed the v5-beta with same start level and removed the old one.
> For the moment it seems to work with Java 8, the only thing is that the
> log is full of "unable to create a proxy object for ... returning the
> original object instead."
>  >>
>  >> JP
>  >>
>  >>
>  >> -----Message d'origine-----
>  >> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : vendredi
>  >> 13 décembre 2013 10:24 À : user@karaf.apache.org
> <ma...@karaf.apache.org> Objet : Re: Karaf &
>  >> Java8
>  >>
>  >> Hi JP,
>  >>
>  >> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on
> trunk).
>  >>
>  >> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5
> beta at all. So not sure it will work "out of the box".
>  >>
>  >> Regards
>  >> JB
>  >>
>  >> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>  >>> It looks like ASM 5 beta supports Java8 which is great news.
>  >>>
>  >>> Is there a way to patch Karaf?
>  >>>
>  >>> Regards,
>  >>> JP
>  >>>
>  >>> [@@ OPEN @@]
>  >>>
>  >>> -----Message d'origine-----
>  >>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : jeudi 5
>  >>> décembre 2013 14:22 À : user@karaf.apache.org
> <ma...@karaf.apache.org> Objet : Re: Karaf &
>  >>> Java8
>  >>>
>  >>> It depends if we need an ASM update or not.
>  >>>
>  >>> Let me take a quick look on that, I will get back to you (at least
> in the Jira).
>  >>>
>  >>> Regards
>  >>> JB
>  >>>
>  >>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>  >>>> Ok, well... from your experience, when could I expect a Java8
> compliant version of Karaf?
>  >>>>
>  >>>> JP
>  >>>>
>  >>>> -----Message d'origine-----
>  >>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : jeudi 5
>  >>>> décembre 2013 13:59 À : user@karaf.apache.org
> <ma...@karaf.apache.org> Objet : Re: Karaf &
>  >>>> Java8
>  >>>>
>  >>>> Hi Jean-Philippe,
>  >>>>
>  >>>> not yet, we have to work on ASM for full support.
>  >>>>
>  >>>> I gonna take a look on that just after Karaf 3.0.0 release.
>  >>>>
>  >>>> Regards
>  >>>> JB
>  >>>>
>  >>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>  >>>>> Dear Karaf experts,
>  >>>>>
>  >>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
>  >>>>> there a workaround?
>  >>>>>
>  >>>>> JP
>  >>>>>
>  >>>>
>  >>>> --
>  >>>> Jean-Baptiste Onofré
>  >>>> jbonofre@apache.org <ma...@apache.org>
>  >>>> http://blog.nanthrax.net
>  >>>> Talend - http://www.talend.com
>  >>>>
>  >>>
>  >>> --
>  >>> Jean-Baptiste Onofré
>  >>> jbonofre@apache.org <ma...@apache.org>
>  >>> http://blog.nanthrax.net
>  >>> Talend - http://www.talend.com
>  >>>
>  >>
>  >> --
>  >> Jean-Baptiste Onofré
>  >> jbonofre@apache.org <ma...@apache.org>
>  >> http://blog.nanthrax.net
>  >> Talend - http://www.talend.com
>  >>
>  >
>  > --
>  > Jean-Baptiste Onofré
>  > jbonofre@apache.org <ma...@apache.org>
>  > http://blog.nanthrax.net
>  > Talend - http://www.talend.com
>  >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Correct,

The problem is the first egrep to match against '"([0-9]. [0-9]\..* [0-9])"'. In fact java version might be followed by a suffix like -ea.

The correct pattern should include this by adding .* which gives:
            '"([0-9]. [0-9]\..* [0-9]).*"'

How to update Karaf?

Regards,
JP

De : Daniel McGreal [mailto:daniel@redbite.com]
Envoyé : mercredi 19 mars 2014 13:27
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

I think that's the part of the startup script that tries to parse the version out of a call to /whichever/java -version
>From memory, the script isn't capable of interpreting Java versions that are not reported as x.x.x.

Though that doesn't prevent startup. I have had startups seemingly 'hang' when the instance wasn't able to connect to its online feature repository.

On 19 Mar 2014, at 12:17, CLEMENT Jean-Philippe wrote:


I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get the following error message:
            ./karaf: line 242: [: : integer expression expected

Don't know why but karaf does not start at all.

PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz

Regards,
JP

De : Guillaume Nodet [mailto:gnodet@apache.org]<mailto:[mailto:gnodet@apache.org]>
Envoyé : mercredi 19 mars 2014 09:48
À : user
Objet : Re: Karaf & Java8

You'll find it at the following location:
   http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/

2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>>:
Hi JB,

How may I download the 3.1.0-SNAPSHOT?

Regards,
JP

[@@ THALES GROUP INTERNAL @@]

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>]
Envoyé : lundi 17 mars 2014 10:55
À : user@karaf.apache.org<ma...@karaf.apache.org>
Objet : Re: Karaf & Java8

Hi JP,

Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).

Regards
JB

On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf-ers,
>
> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>
> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>
> Another major difference is that
> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
> Visitors declared with the Opcodes.ASM5 version MUST use this new
> method instead of the deprecated one (old visitors using the
> Opcodes.ASM4 and using the deprecated method will continue to work).
> See chapters 5 and
> 10 of the User Guide
> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>
> I'm not familiar with ASM at all, but I would like to get Java 8
> support :)
>
> How may I help? Is there already a Karaf 3.1.0 beta version?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : vendredi
> 13 décembre 2013 17:10 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
> Java8
>
> It's exactly what I suspect about Aries Proxy and ASM.
>
> You will have a bunch of feature that won't work.
>
> I gonna check the version range.
>
> Regards
> JB
>
> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>
>> JP
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : vendredi
>> 13 décembre 2013 10:24 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
>> Java8
>>
>> Hi JP,
>>
>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>
>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>
>> Regards
>> JB
>>
>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>
>>> Is there a way to patch Karaf?
>>>
>>> Regards,
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : jeudi 5
>>> décembre 2013 14:22 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
>>> Java8
>>>
>>> It depends if we need an ASM update or not.
>>>
>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>
>>> Regards
>>> JB
>>>
>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>
>>>> JP
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : jeudi 5
>>>> décembre 2013 13:59 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> Hi Jean-Philippe,
>>>>
>>>> not yet, we have to work on ASM for full support.
>>>>
>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>> Dear Karaf experts,
>>>>>
>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
>>>>> there a workaround?
>>>>>
>>>>> JP
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org<ma...@apache.org>
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org<ma...@apache.org>
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org<ma...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org<ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf & Java8

Posted by Daniel McGreal <da...@redbite.com>.
I think that's the part of the startup script that tries to parse the version out of a call to /whichever/java -version
From memory, the script isn't capable of interpreting Java versions that are not reported as x.x.x.

Though that doesn't prevent startup. I have had startups seemingly 'hang' when the instance wasn't able to connect to its online feature repository.

On 19 Mar 2014, at 12:17, CLEMENT Jean-Philippe wrote:

> I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get the following error message:
>             ./karaf: line 242: [: : integer expression expected
>  
> Don’t know why but karaf does not start at all.
>  
> PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz
>  
> Regards,
> JP
>  
> De : Guillaume Nodet [mailto:gnodet@apache.org] 
> Envoyé : mercredi 19 mars 2014 09:48
> À : user
> Objet : Re: Karaf & Java8
>  
> You'll find it at the following location:
>    http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/
>  
> 
> 2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>:
> Hi JB,
> 
> How may I download the 3.1.0-SNAPSHOT?
> 
> Regards,
> JP
> 
> [@@ THALES GROUP INTERNAL @@]
> 
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 17 mars 2014 10:55
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
> 
> Hi JP,
> 
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
> 
> Regards
> JB
> 
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
> > Dear Karaf-ers,
> >
> > ASM 5 is released so it may be used in Karaf to get Java 8 support:
> >
> > "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
> > Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
> >
> > Another major difference is that
> > visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
> > Visitors declared with the Opcodes.ASM5 version MUST use this new
> > method instead of the deprecated one (old visitors using the
> > Opcodes.ASM4 and using the deprecated method will continue to work).
> > See chapters 5 and
> > 10 of the User Guide
> > (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
> >
> > I'm not familiar with ASM at all, but I would like to get Java 8
> > support :)
> >
> > How may I help? Is there already a Karaf 3.1.0 beta version?
> >
> > Regards,
> > JP
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
> > 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
> > Java8
> >
> > It's exactly what I suspect about Aries Proxy and ASM.
> >
> > You will have a bunch of feature that won't work.
> >
> > I gonna check the version range.
> >
> > Regards
> > JB
> >
> > On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
> >> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
> >>
> >> JP
> >>
> >>
> >> -----Message d'origine-----
> >> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
> >> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
> >> Java8
> >>
> >> Hi JP,
> >>
> >> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
> >>
> >> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
> >>
> >> Regards
> >> JB
> >>
> >> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
> >>> It looks like ASM 5 beta supports Java8 which is great news.
> >>>
> >>> Is there a way to patch Karaf?
> >>>
> >>> Regards,
> >>> JP
> >>>
> >>> [@@ OPEN @@]
> >>>
> >>> -----Message d'origine-----
> >>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
> >>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
> >>> Java8
> >>>
> >>> It depends if we need an ASM update or not.
> >>>
> >>> Let me take a quick look on that, I will get back to you (at least in the Jira).
> >>>
> >>> Regards
> >>> JB
> >>>
> >>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
> >>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
> >>>>
> >>>> JP
> >>>>
> >>>> -----Message d'origine-----
> >>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
> >>>> décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf &
> >>>> Java8
> >>>>
> >>>> Hi Jean-Philippe,
> >>>>
> >>>> not yet, we have to work on ASM for full support.
> >>>>
> >>>> I gonna take a look on that just after Karaf 3.0.0 release.
> >>>>
> >>>> Regards
> >>>> JB
> >>>>
> >>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
> >>>>> Dear Karaf experts,
> >>>>>
> >>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
> >>>>> there a workaround?
> >>>>>
> >>>>> JP
> >>>>>
> >>>>
> >>>> --
> >>>> Jean-Baptiste Onofré
> >>>> jbonofre@apache.org
> >>>> http://blog.nanthrax.net
> >>>> Talend - http://www.talend.com
> >>>>
> >>>
> >>> --
> >>> Jean-Baptiste Onofré
> >>> jbonofre@apache.org
> >>> http://blog.nanthrax.net
> >>> Talend - http://www.talend.com
> >>>
> >>
> >> --
> >> Jean-Baptiste Onofré
> >> jbonofre@apache.org
> >> http://blog.nanthrax.net
> >> Talend - http://www.talend.com
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
> 
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com


RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get the following error message:
            ./karaf: line 242: [: : integer expression expected

Don't know why but karaf does not start at all.

PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz

Regards,
JP

De : Guillaume Nodet [mailto:gnodet@apache.org]
Envoyé : mercredi 19 mars 2014 09:48
À : user
Objet : Re: Karaf & Java8

You'll find it at the following location:
   http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/

2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>>:
Hi JB,

How may I download the 3.1.0-SNAPSHOT?

Regards,
JP

[@@ THALES GROUP INTERNAL @@]

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>]
Envoyé : lundi 17 mars 2014 10:55
À : user@karaf.apache.org<ma...@karaf.apache.org>
Objet : Re: Karaf & Java8

Hi JP,

Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).

Regards
JB

On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf-ers,
>
> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>
> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>
> Another major difference is that
> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
> Visitors declared with the Opcodes.ASM5 version MUST use this new
> method instead of the deprecated one (old visitors using the
> Opcodes.ASM4 and using the deprecated method will continue to work).
> See chapters 5 and
> 10 of the User Guide
> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>
> I'm not familiar with ASM at all, but I would like to get Java 8
> support :)
>
> How may I help? Is there already a Karaf 3.1.0 beta version?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : vendredi
> 13 décembre 2013 17:10 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
> Java8
>
> It's exactly what I suspect about Aries Proxy and ASM.
>
> You will have a bunch of feature that won't work.
>
> I gonna check the version range.
>
> Regards
> JB
>
> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>
>> JP
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : vendredi
>> 13 décembre 2013 10:24 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
>> Java8
>>
>> Hi JP,
>>
>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>
>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>
>> Regards
>> JB
>>
>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>
>>> Is there a way to patch Karaf?
>>>
>>> Regards,
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : jeudi 5
>>> décembre 2013 14:22 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
>>> Java8
>>>
>>> It depends if we need an ASM update or not.
>>>
>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>
>>> Regards
>>> JB
>>>
>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>
>>>> JP
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>] Envoyé : jeudi 5
>>>> décembre 2013 13:59 À : user@karaf.apache.org<ma...@karaf.apache.org> Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> Hi Jean-Philippe,
>>>>
>>>> not yet, we have to work on ASM for full support.
>>>>
>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>> Dear Karaf experts,
>>>>>
>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
>>>>> there a workaround?
>>>>>
>>>>> JP
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org<ma...@apache.org>
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org<ma...@apache.org>
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org<ma...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org<ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf & Java8

Posted by Guillaume Nodet <gn...@apache.org>.
You'll find it at the following location:

http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/


2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe <
jean-philippe.clement@fr.thalesgroup.com>:

> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 17 mars 2014 10:55
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi JP,
>
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master
> (especially the impact on blueprint).
>
> Regards
> JB
>
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
> > Dear Karaf-ers,
> >
> > ASM 5 is released so it may be used in Karaf to get Java 8 support:
> >
> > "This version is fully backward compatible with ASM 5.0 BETA (itself
> binary compatible with the 4.x versions) and provides full support for the
> new Java 8 class format features. However, new dynamic checks have been
> added in order to make sure that ASM version numbers (e.g.
> > Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by
> subclasses of the ASM classes (as documented in the API).
> >
> > Another major difference is that
> > visitMethodInsn(int,String,String,String) is now deprecated, and
> replaced with visitMethodInsn(int,String,String,String,boolean) -- in order
> to support invokespecial and invokestatic on interfaces in Java 8.
> > Visitors declared with the Opcodes.ASM5 version MUST use this new
> > method instead of the deprecated one (old visitors using the
> > Opcodes.ASM4 and using the deprecated method will continue to work).
> > See chapters 5 and
> > 10 of the User Guide
> > (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more
> details."
> >
> > I'm not familiar with ASM at all, but I would like to get Java 8
> > support :)
> >
> > How may I help? Is there already a Karaf 3.1.0 beta version?
> >
> > Regards,
> > JP
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
> > 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
> > Java8
> >
> > It's exactly what I suspect about Aries Proxy and ASM.
> >
> > You will have a bunch of feature that won't work.
> >
> > I gonna check the version range.
> >
> > Regards
> > JB
> >
> > On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
> >> I found that ASM is installed as any normal bundle within Karaf. So I
> installed the v5-beta with same start level and removed the old one. For
> the moment it seems to work with Java 8, the only thing is that the log is
> full of "unable to create a proxy object for ... returning the original
> object instead."
> >>
> >> JP
> >>
> >>
> >> -----Message d'origine-----
> >> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
> >> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
> >> Java8
> >>
> >> Hi JP,
> >>
> >> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on
> trunk).
> >>
> >> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta
> at all. So not sure it will work "out of the box".
> >>
> >> Regards
> >> JB
> >>
> >> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
> >>> It looks like ASM 5 beta supports Java8 which is great news.
> >>>
> >>> Is there a way to patch Karaf?
> >>>
> >>> Regards,
> >>> JP
> >>>
> >>> [@@ OPEN @@]
> >>>
> >>> -----Message d'origine-----
> >>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
> >>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
> >>> Java8
> >>>
> >>> It depends if we need an ASM update or not.
> >>>
> >>> Let me take a quick look on that, I will get back to you (at least in
> the Jira).
> >>>
> >>> Regards
> >>> JB
> >>>
> >>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
> >>>> Ok, well... from your experience, when could I expect a Java8
> compliant version of Karaf?
> >>>>
> >>>> JP
> >>>>
> >>>> -----Message d'origine-----
> >>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
> >>>> décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf &
> >>>> Java8
> >>>>
> >>>> Hi Jean-Philippe,
> >>>>
> >>>> not yet, we have to work on ASM for full support.
> >>>>
> >>>> I gonna take a look on that just after Karaf 3.0.0 release.
> >>>>
> >>>> Regards
> >>>> JB
> >>>>
> >>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
> >>>>> Dear Karaf experts,
> >>>>>
> >>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
> >>>>> there a workaround?
> >>>>>
> >>>>> JP
> >>>>>
> >>>>
> >>>> --
> >>>> Jean-Baptiste Onofré
> >>>> jbonofre@apache.org
> >>>> http://blog.nanthrax.net
> >>>> Talend - http://www.talend.com
> >>>>
> >>>
> >>> --
> >>> Jean-Baptiste Onofré
> >>> jbonofre@apache.org
> >>> http://blog.nanthrax.net
> >>> Talend - http://www.talend.com
> >>>
> >>
> >> --
> >> Jean-Baptiste Onofré
> >> jbonofre@apache.org
> >> http://blog.nanthrax.net
> >> Talend - http://www.talend.com
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It's already part of my fix/branch.

Regards
JB

On 03/28/2014 11:45 AM, CLEMENT Jean-Philippe wrote:
> Also, you may know that Java 8 includes JavaFX so the jre.properties should be updated to export JavaFX packages.
>
> I attached an updated version containing all JavaFX packages (in the Java8 section).
>
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : vendredi 28 mars 2014 11:02
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi JP,
>
> yes, 3.0.1 will be release soon (I'm a bit late on this but I will work on that during the week end).
>
> 3.1.0 doesn't exist anymore for now (master is 4.0.0-SNAPSHOT).
>
> So, yes, Java8 will be support by 3.0.1 and 4.0.0 (and eventually 3.1.0 if we decide to create the branch at some point).
>
> Regards
> JB
>
> On 03/28/2014 10:35 AM, CLEMENT Jean-Philippe wrote:
>> Excellent :)
>>
>> I guess 3.0.1 should be released soon (at least as a RC)?
>>
>> PS: is Java 8 part of 3.0.1 or 3.1.0?
>>
>> JP
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 27
>> mars 2014 19:23 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>
>> Hi Charlie,
>>
>> Yes, 3.0.1 and 4.0.0 will have Java8 support.
>>
>> Regards
>> JB
>>
>> On 03/27/2014 07:17 PM, Charlie Mordant wrote:
>>> Hi JB, JP,
>>>
>>> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
>>> for sharp devs ;).
>>>
>>> Regards,
>>>
>>>
>>> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
>>> <ma...@nanthrax.net>>:
>>>
>>>       Hi JP,
>>>
>>>       it works straight forward for me using ASM 5.0.1. I will rebase my
>>>       local branch and merge on master.
>>>
>>>       Regards
>>>       JB
>>>
>>>
>>>       On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>>>
>>>           Hi JB,
>>>
>>>           Some modules which have been compiled with Java 8 fail to start.
>>>           The problem is I have no clue if it's due to Karaf/Java8 or
>>>           not... I'm stuck :S
>>>
>>>           Did you make any progress?
>>>
>>>           JP
>>>
>>>           [@@ THALES GROUP INTERNAL @@]
>>>
>>>
>>>           -----Message d'origine-----
>>>           De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>           <ma...@nanthrax.net>]
>>>           Envoyé : lundi 24 mars 2014 12:11
>>>           À : user@karaf.apache.org <ma...@karaf.apache.org>
>>>           Objet : Re: Karaf & Java8
>>>
>>>           Hi JP
>>>
>>>           for Karaf itself no, the point is more on the Aries Proxy side.
>>>
>>>           I plan to push something about that later today (I'm in the US
>>>           this week).
>>>
>>>           Regards
>>>           JB
>>>
>>>           On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>>
>>>               Hi Jean-Baptiste,
>>>
>>>               FYI, ASM has been updated to 5.0.1: " This is a maintenance
>>>               version which fixes a few important bugs found in the 5.0
>>>               version ".
>>>
>>>               Do you think it will take long to catch up with ASM 5 / Java8?
>>>
>>>               JP
>>>
>>>               [@@ OPEN @@]
>>>               -----Message d'origine-----
>>>               De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>               <ma...@nanthrax.net>] Envoyé : mercredi
>>>               19 mars 2014 10:19 À : user@karaf.apache.org
>>>               <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>>>
>>>               Hi JP,
>>>
>>>               FYI, I updated the Jira this morning, I will work on ASM5
>>>               update today.
>>>
>>>               Regards
>>>               JB
>>>
>>>               On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>>
>>>                   Hi JB,
>>>
>>>                   How may I download the 3.1.0-SNAPSHOT?
>>>
>>>                   Regards,
>>>                   JP
>>>
>>>                   [@@ THALES GROUP INTERNAL @@]
>>>
>>>                   -----Message d'origine-----
>>>                   De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>                   <ma...@nanthrax.net>] Envoyé : lundi 17
>>>                   mars 2014 10:55 À : user@karaf.apache.org
>>>                   <ma...@karaf.apache.org> Objet : Re: Karaf &
>>> Java8
>>>
>>>                   Hi JP,
>>>
>>>                   Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>>>                   the update on master (especially the impact on blueprint).
>>>
>>>                   Regards
>>>                   JB
>>>
>>>                   On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>>
>>>                       Dear Karaf-ers,
>>>
>>>                       ASM 5 is released so it may be used in Karaf to get
>>>                       Java 8 support:
>>>
>>>                       "This version is fully backward compatible with ASM
>>>                       5.0 BETA (itself binary compatible with the 4.x
>>>                       versions) and provides full support for the new Java
>>>                       8 class format features. However, new dynamic checks
>>>                       have been added in order to make sure that ASM
>>>                       version numbers (e.g.
>>>                       Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>>>                       at runtime by subclasses of the ASM classes (as
>>>                       documented in the API).
>>>
>>>                       Another major difference is that
>>>                       visitMethodInsn(int,String,__String,String) is now
>>>                       deprecated, and replaced with
>>>                       visitMethodInsn(int,String,__String,String,boolean)
>>>                       -- in order to support invokespecial and
>>>                       invokestatic on interfaces in Java 8.
>>>                       Visitors declared with the Opcodes.ASM5 version MUST
>>>                       use this new
>>>                       method instead of the deprecated one (old visitors
>>>                       using the
>>>                       Opcodes.ASM4 and using the deprecated method will
>>>                       continue to work).
>>>                       See chapters 5 and
>>>                       10 of the User Guide
>>>                       (http://download.forge.__objectweb.org/asm/asm4-guide.__pdf
>>>                       <http://download.forge.objectweb.org/asm/asm4-guide.pdf>)
>>>                       for more details."
>>>
>>>                       I'm not familiar with ASM at all, but I would like
>>>                       to get Java 8
>>>                       support :)
>>>
>>>                       How may I help? Is there already a Karaf 3.1.0 beta
>>>                       version?
>>>
>>>                       Regards,
>>>                       JP
>>>
>>>                       -----Message d'origine-----
>>>                       De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>                       <ma...@nanthrax.net>] Envoyé : vendredi
>>>                       13 décembre 2013 17:10 À : user@karaf.apache.org
>>>                       <ma...@karaf.apache.org> Objet : Re: Karaf &
>>>                       Java8
>>>
>>>                       It's exactly what I suspect about Aries Proxy and ASM.
>>>
>>>                       You will have a bunch of feature that won't work.
>>>
>>>                       I gonna check the version range.
>>>
>>>                       Regards
>>>                       JB
>>>
>>>                       On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>
>>>                           I found that ASM is installed as any normal
>>>                           bundle within Karaf. So I installed the v5-beta
>>>                           with same start level and removed the old one.
>>>                           For the moment it seems to work with Java 8, the
>>>                           only thing is that the log is full of "unable to
>>>                           create a proxy object for ... returning the
>>>                           original object instead."
>>>
>>>                           JP
>>>
>>>
>>>                           -----Message d'origine-----
>>>                           De : Jean-Baptiste Onofré
>>>                           [mailto:jb@nanthrax.net
>>>                           <ma...@nanthrax.net>] Envoyé :
>>>                           vendredi
>>>                           13 décembre 2013 10:24 À : user@karaf.apache.org
>>>                           <ma...@karaf.apache.org> Objet : Re: Karaf
>>>                           &
>>>                           Java8
>>>
>>>                           Hi JP,
>>>
>>>                           as ASM 5 is still beta, we don't upgrade in
>>>                           Karaf (or after 3.0.0 on trunk).
>>>
>>>                           As Aries Proxy also use ASM, I don't think that
>>>                           Aries tested ASM 5 beta at all. So not sure it
>>>                           will work "out of the box".
>>>
>>>                           Regards
>>>                           JB
>>>
>>>                           On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>
>>>                               It looks like ASM 5 beta supports Java8
>>>                               which is great news.
>>>
>>>                               Is there a way to patch Karaf?
>>>
>>>                               Regards,
>>>                               JP
>>>
>>>                               [@@ OPEN @@]
>>>
>>>                               -----Message d'origine-----
>>>                               De : Jean-Baptiste Onofré
>>>                               [mailto:jb@nanthrax.net
>>>                               <ma...@nanthrax.net>] Envoyé : jeudi
>>>                               5 décembre 2013 14:22 À :
>>>                               user@karaf.apache.org
>>>                               <ma...@karaf.apache.org> Objet : Re: Karaf
>>>                               &
>>>                               Java8
>>>
>>>                               It depends if we need an ASM update or not.
>>>
>>>                               Let me take a quick look on that, I will get
>>>                               back to you (at least in the Jira).
>>>
>>>                               Regards
>>>                               JB
>>>
>>>                               On 12/05/2013 02:14 PM, CLEMENT
>>>                               Jean-Philippe wrote:
>>>
>>>                                   Ok, well... from your experience, when
>>>                                   could I expect a Java8 compliant version
>>>                                   of Karaf?
>>>
>>>                                   JP
>>>
>>>                                   -----Message d'origine-----
>>>                                   De : Jean-Baptiste Onofré
>>>                                   [mailto:jb@nanthrax.net
>>>                                   <ma...@nanthrax.net>] Envoyé : jeudi
>>>                                   5 décembre 2013 13:59 À :
>>>                                   user@karaf.apache.org
>>>                                   <ma...@karaf.apache.org> Objet :
>>>                                   Re: Karaf
>>>                                   &
>>>                                   Java8
>>>
>>>                                   Hi Jean-Philippe,
>>>
>>>                                   not yet, we have to work on ASM for full
>>>                                   support.
>>>
>>>                                   I gonna take a look on that just after
>>>                                   Karaf 3.0.0 release.
>>>
>>>                                   Regards
>>>                                   JB
>>>
>>>                                   On 12/05/2013 01:50 PM, CLEMENT
>>>                                   Jean-Philippe wrote:
>>>
>>>                                       Dear Karaf experts,
>>>
>>>                                       It seems Karaf 3.0.0 RC1 doesn't
>>>                                       work with Java8 (KARAF-2562).
>>>                                       Is there a workaround?
>>>
>>>                                       JP
>>>
>>>
>>>                                   --
>>>                                   Jean-Baptiste Onofré
>>>                                   jbonofre@apache.org
>>>                                   <ma...@apache.org>
>>>                                   http://blog.nanthrax.net
>>>                                   Talend - http://www.talend.com
>>>
>>>
>>>                               --
>>>                               Jean-Baptiste Onofré
>>>                               jbonofre@apache.org <ma...@apache.org>
>>>                               http://blog.nanthrax.net
>>>                               Talend - http://www.talend.com
>>>
>>>
>>>                           --
>>>                           Jean-Baptiste Onofré
>>>                           jbonofre@apache.org <ma...@apache.org>
>>>                           http://blog.nanthrax.net
>>>                           Talend - http://www.talend.com
>>>
>>>
>>>                       --
>>>                       Jean-Baptiste Onofré
>>>                       jbonofre@apache.org <ma...@apache.org>
>>>                       http://blog.nanthrax.net
>>>                       Talend - http://www.talend.com
>>>
>>>
>>>                   --
>>>                   Jean-Baptiste Onofré
>>>                   jbonofre@apache.org <ma...@apache.org>
>>>                   http://blog.nanthrax.net
>>>                   Talend - http://www.talend.com
>>>
>>>
>>>               --
>>>               Jean-Baptiste Onofré
>>>               jbonofre@apache.org <ma...@apache.org>
>>>               http://blog.nanthrax.net
>>>               Talend - http://www.talend.com
>>>
>>>
>>>           --
>>>           Jean-Baptiste Onofré
>>>           jbonofre@apache.org <ma...@apache.org>
>>>           http://blog.nanthrax.net
>>>           Talend - http://www.talend.com
>>>
>>>
>>>       --
>>>       Jean-Baptiste Onofré
>>>       jbonofre@apache.org <ma...@apache.org>
>>>       http://blog.nanthrax.net
>>>       Talend - http://www.talend.com
>>>
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Fwd: Karaf & Java8

Posted by Achim Nierbeck <bc...@googlemail.com>.
I'm also with Andreas' idea of branching from before the 4.0 commits.
And actually I'm not sure if we add a ASM5 on the 3.0.x branch (needed to
run with Java8) we are still conform to semver either,
btw. I have the same "bad gut feeling" with upgrading to minor updates on
depending projects for a "patch" release.

just my .02 cents


2014-03-28 14:14 GMT+01:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> In that case, I would propose to create the branch on karaf-3.0.x as
> master already contains a bunch of changes.
>
> But, I would wait as I'm afraid it will result as karaf-2.x branch.
>
> Regards
> JB
>
>
> On 03/28/2014 01:59 PM, Andreas Pieber wrote:
>
>> I really think that we should create a 3.1 branch soon again (directly
>> before Gulliaumes commits), since 4.0 is simply too far in the future and
>> new features on micro releases are not following the semvers
>> specification.
>>
>> Kind regards,
>> Andreas
>>
>> ---------- Forwarded message ----------
>> From: Jean-Baptiste Onofré <jb...@nanthrax.net>
>> Date: Fri, Mar 28, 2014 at 11:01 AM
>> Subject: Re: Karaf & Java8
>> To: user@karaf.apache.org
>>
>>
>> Hi JP,
>>
>> yes, 3.0.1 will be release soon (I'm a bit late on this but I will work on
>> that during the week end).
>>
>> 3.1.0 doesn't exist anymore for now (master is 4.0.0-SNAPSHOT).
>>
>> So, yes, Java8 will be support by 3.0.1 and 4.0.0 (and eventually 3.1.0 if
>> we decide to create the branch at some point).
>>
>> Regards
>> JB
>>
>>
>> On 03/28/2014 10:35 AM, CLEMENT Jean-Philippe wrote:
>>
>>  Excellent :)
>>>
>>> I guess 3.0.1 should be released soon (at least as a RC)?
>>>
>>> PS: is Java 8 part of 3.0.1 or 3.1.0?
>>>
>>> JP
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
>>> Envoyé : jeudi 27 mars 2014 19:23
>>> À : user@karaf.apache.org
>>> Objet : Re: Karaf & Java8
>>>
>>> Hi Charlie,
>>>
>>> Yes, 3.0.1 and 4.0.0 will have Java8 support.
>>>
>>> Regards
>>> JB
>>>
>>> On 03/27/2014 07:17 PM, Charlie Mordant wrote:
>>>
>>>  Hi JB, JP,
>>>>
>>>> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
>>>> for sharp devs ;).
>>>>
>>>> Regards,
>>>>
>>>>
>>>> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
>>>> <ma...@nanthrax.net>>:
>>>>
>>>>       Hi JP,
>>>>
>>>>       it works straight forward for me using ASM 5.0.1. I will rebase my
>>>>       local branch and merge on master.
>>>>
>>>>       Regards
>>>>       JB
>>>>
>>>>
>>>>       On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>>>>
>>>>           Hi JB,
>>>>
>>>>           Some modules which have been compiled with Java 8 fail to
>>>> start.
>>>>           The problem is I have no clue if it's due to Karaf/Java8 or
>>>>           not... I'm stuck :S
>>>>
>>>>           Did you make any progress?
>>>>
>>>>           JP
>>>>
>>>>           [@@ THALES GROUP INTERNAL @@]
>>>>
>>>>
>>>>           -----Message d'origine-----
>>>>           De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>>           <ma...@nanthrax.net>]
>>>>           Envoyé : lundi 24 mars 2014 12:11
>>>>           À : user@karaf.apache.org <ma...@karaf.apache.org>
>>>>           Objet : Re: Karaf & Java8
>>>>
>>>>           Hi JP
>>>>
>>>>           for Karaf itself no, the point is more on the Aries Proxy
>>>> side.
>>>>
>>>>           I plan to push something about that later today (I'm in the US
>>>>           this week).
>>>>
>>>>           Regards
>>>>           JB
>>>>
>>>>           On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>>>
>>>>               Hi Jean-Baptiste,
>>>>
>>>>               FYI, ASM has been updated to 5.0.1: " This is a
>>>> maintenance
>>>>               version which fixes a few important bugs found in the 5.0
>>>>               version ".
>>>>
>>>>               Do you think it will take long to catch up with ASM 5 /
>>>> Java8?
>>>>
>>>>               JP
>>>>
>>>>               [@@ OPEN @@]
>>>>               -----Message d'origine-----
>>>>               De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>>               <ma...@nanthrax.net>] Envoyé : mercredi
>>>>               19 mars 2014 10:19 À : user@karaf.apache.org
>>>>               <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>>>>
>>>>               Hi JP,
>>>>
>>>>               FYI, I updated the Jira this morning, I will work on ASM5
>>>>               update today.
>>>>
>>>>               Regards
>>>>               JB
>>>>
>>>>               On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>>>
>>>>                   Hi JB,
>>>>
>>>>                   How may I download the 3.1.0-SNAPSHOT?
>>>>
>>>>                   Regards,
>>>>                   JP
>>>>
>>>>                   [@@ THALES GROUP INTERNAL @@]
>>>>
>>>>                   -----Message d'origine-----
>>>>                   De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>>                   <ma...@nanthrax.net>] Envoyé : lundi 17
>>>>                   mars 2014 10:55 À : user@karaf.apache.org
>>>>                   <ma...@karaf.apache.org> Objet : Re: Karaf &
>>>> Java8
>>>>
>>>>                   Hi JP,
>>>>
>>>>                   Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>>>>                   the update on master (especially the impact on
>>>> blueprint).
>>>>
>>>>                   Regards
>>>>                   JB
>>>>
>>>>                   On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>>>
>>>>                       Dear Karaf-ers,
>>>>
>>>>                       ASM 5 is released so it may be used in Karaf to
>>>> get
>>>>                       Java 8 support:
>>>>
>>>>                       "This version is fully backward compatible with
>>>> ASM
>>>>                       5.0 BETA (itself binary compatible with the 4.x
>>>>                       versions) and provides full support for the new
>>>> Java
>>>>                       8 class format features. However, new dynamic
>>>> checks
>>>>                       have been added in order to make sure that ASM
>>>>                       version numbers (e.g.
>>>>                       Opcodes.ASM4, Opcodes.ASM5, etc) are correctly
>>>> used
>>>>                       at runtime by subclasses of the ASM classes (as
>>>>                       documented in the API).
>>>>
>>>>                       Another major difference is that
>>>>                       visitMethodInsn(int,String,__String,String) is
>>>> now
>>>>                       deprecated, and replaced with
>>>>                       visitMethodInsn(int,String,__
>>>> String,String,boolean)
>>>>                       -- in order to support invokespecial and
>>>>                       invokestatic on interfaces in Java 8.
>>>>                       Visitors declared with the Opcodes.ASM5 version
>>>> MUST
>>>>                       use this new
>>>>                       method instead of the deprecated one (old visitors
>>>>                       using the
>>>>                       Opcodes.ASM4 and using the deprecated method will
>>>>                       continue to work).
>>>>                       See chapters 5 and
>>>>                       10 of the User Guide
>>>>                       (http://download.forge.__objec
>>>> tweb.org/asm/asm4-guide.__pdf
>>>>                       <http://download.forge.
>>>> objectweb.org/asm/asm4-guide.
>>>> pdf>)
>>>>                       for more details."
>>>>
>>>>                       I'm not familiar with ASM at all, but I would like
>>>>                       to get Java 8
>>>>                       support :)
>>>>
>>>>                       How may I help? Is there already a Karaf 3.1.0
>>>> beta
>>>>                       version?
>>>>
>>>>                       Regards,
>>>>                       JP
>>>>
>>>>                       -----Message d'origine-----
>>>>                       De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>>                       <ma...@nanthrax.net>] Envoyé : vendredi
>>>>                       13 décembre 2013 17:10 À : user@karaf.apache.org
>>>>                       <ma...@karaf.apache.org> Objet : Re: Karaf
>>>> &
>>>>                       Java8
>>>>
>>>>                       It's exactly what I suspect about Aries Proxy and
>>>> ASM.
>>>>
>>>>                       You will have a bunch of feature that won't work.
>>>>
>>>>                       I gonna check the version range.
>>>>
>>>>                       Regards
>>>>                       JB
>>>>
>>>>                       On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe
>>>> wrote:
>>>>
>>>>                           I found that ASM is installed as any normal
>>>>                           bundle within Karaf. So I installed the
>>>> v5-beta
>>>>                           with same start level and removed the old one.
>>>>                           For the moment it seems to work with Java 8,
>>>> the
>>>>                           only thing is that the log is full of "unable
>>>> to
>>>>                           create a proxy object for ... returning the
>>>>                           original object instead."
>>>>
>>>>                           JP
>>>>
>>>>
>>>>                           -----Message d'origine-----
>>>>                           De : Jean-Baptiste Onofré
>>>>                           [mailto:jb@nanthrax.net
>>>>                           <ma...@nanthrax.net>] Envoyé :
>>>>                           vendredi
>>>>                           13 décembre 2013 10:24 À :
>>>> user@karaf.apache.org
>>>>                           <ma...@karaf.apache.org> Objet : Re:
>>>> Karaf
>>>>                           &
>>>>                           Java8
>>>>
>>>>                           Hi JP,
>>>>
>>>>                           as ASM 5 is still beta, we don't upgrade in
>>>>                           Karaf (or after 3.0.0 on trunk).
>>>>
>>>>                           As Aries Proxy also use ASM, I don't think
>>>> that
>>>>                           Aries tested ASM 5 beta at all. So not sure it
>>>>                           will work "out of the box".
>>>>
>>>>                           Regards
>>>>                           JB
>>>>
>>>>                           On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe
>>>> wrote:
>>>>
>>>>                               It looks like ASM 5 beta supports Java8
>>>>                               which is great news.
>>>>
>>>>                               Is there a way to patch Karaf?
>>>>
>>>>                               Regards,
>>>>                               JP
>>>>
>>>>                               [@@ OPEN @@]
>>>>
>>>>                               -----Message d'origine-----
>>>>                               De : Jean-Baptiste Onofré
>>>>                               [mailto:jb@nanthrax.net
>>>>                               <ma...@nanthrax.net>] Envoyé : jeudi
>>>>                               5 décembre 2013 14:22 À :
>>>>                               user@karaf.apache.org
>>>>                               <ma...@karaf.apache.org> Objet :
>>>> Re:
>>>> Karaf
>>>>                               &
>>>>                               Java8
>>>>
>>>>                               It depends if we need an ASM update or
>>>> not.
>>>>
>>>>                               Let me take a quick look on that, I will
>>>> get
>>>>                               back to you (at least in the Jira).
>>>>
>>>>                               Regards
>>>>                               JB
>>>>
>>>>                               On 12/05/2013 02:14 PM, CLEMENT
>>>>                               Jean-Philippe wrote:
>>>>
>>>>                                   Ok, well... from your experience, when
>>>>                                   could I expect a Java8 compliant
>>>> version
>>>>                                   of Karaf?
>>>>
>>>>                                   JP
>>>>
>>>>                                   -----Message d'origine-----
>>>>                                   De : Jean-Baptiste Onofré
>>>>                                   [mailto:jb@nanthrax.net
>>>>                                   <ma...@nanthrax.net>] Envoyé :
>>>> jeudi
>>>>                                   5 décembre 2013 13:59 À :
>>>>                                   user@karaf.apache.org
>>>>                                   <ma...@karaf.apache.org> Objet
>>>> :
>>>>                                   Re: Karaf
>>>>                                   &
>>>>                                   Java8
>>>>
>>>>                                   Hi Jean-Philippe,
>>>>
>>>>                                   not yet, we have to work on ASM for
>>>> full
>>>>                                   support.
>>>>
>>>>                                   I gonna take a look on that just after
>>>>                                   Karaf 3.0.0 release.
>>>>
>>>>                                   Regards
>>>>                                   JB
>>>>
>>>>                                   On 12/05/2013 01:50 PM, CLEMENT
>>>>                                   Jean-Philippe wrote:
>>>>
>>>>                                       Dear Karaf experts,
>>>>
>>>>                                       It seems Karaf 3.0.0 RC1 doesn't
>>>>                                       work with Java8 (KARAF-2562).
>>>>                                       Is there a workaround?
>>>>
>>>>                                       JP
>>>>
>>>>
>>>>                                   --
>>>>                                   Jean-Baptiste Onofré
>>>>                                   jbonofre@apache.org
>>>>                                   <ma...@apache.org>
>>>>                                   http://blog.nanthrax.net
>>>>                                   Talend - http://www.talend.com
>>>>
>>>>
>>>>                               --
>>>>                               Jean-Baptiste Onofré
>>>>                               jbonofre@apache.org <mailto:
>>>> jbonofre@apache.org>
>>>>                               http://blog.nanthrax.net
>>>>                               Talend - http://www.talend.com
>>>>
>>>>
>>>>                           --
>>>>                           Jean-Baptiste Onofré
>>>>                           jbonofre@apache.org <mailto:
>>>> jbonofre@apache.org>
>>>>                           http://blog.nanthrax.net
>>>>                           Talend - http://www.talend.com
>>>>
>>>>
>>>>                       --
>>>>                       Jean-Baptiste Onofré
>>>>                       jbonofre@apache.org <ma...@apache.org>
>>>>                       http://blog.nanthrax.net
>>>>                       Talend - http://www.talend.com
>>>>
>>>>
>>>>                   --
>>>>                   Jean-Baptiste Onofré
>>>>                   jbonofre@apache.org <ma...@apache.org>
>>>>                   http://blog.nanthrax.net
>>>>                   Talend - http://www.talend.com
>>>>
>>>>
>>>>               --
>>>>               Jean-Baptiste Onofré
>>>>               jbonofre@apache.org <ma...@apache.org>
>>>>               http://blog.nanthrax.net
>>>>               Talend - http://www.talend.com
>>>>
>>>>
>>>>           --
>>>>           Jean-Baptiste Onofré
>>>>           jbonofre@apache.org <ma...@apache.org>
>>>>           http://blog.nanthrax.net
>>>>           Talend - http://www.talend.com
>>>>
>>>>
>>>>       --
>>>>       Jean-Baptiste Onofré
>>>>       jbonofre@apache.org <ma...@apache.org>
>>>>       http://blog.nanthrax.net
>>>>       Talend - http://www.talend.com
>>>>
>>>>
>>>>
>>>>  --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>>
>>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Fwd: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
In that case, I would propose to create the branch on karaf-3.0.x as 
master already contains a bunch of changes.

But, I would wait as I'm afraid it will result as karaf-2.x branch.

Regards
JB

On 03/28/2014 01:59 PM, Andreas Pieber wrote:
> I really think that we should create a 3.1 branch soon again (directly
> before Gulliaumes commits), since 4.0 is simply too far in the future and
> new features on micro releases are not following the semvers specification.
>
> Kind regards,
> Andreas
>
> ---------- Forwarded message ----------
> From: Jean-Baptiste Onofré <jb...@nanthrax.net>
> Date: Fri, Mar 28, 2014 at 11:01 AM
> Subject: Re: Karaf & Java8
> To: user@karaf.apache.org
>
>
> Hi JP,
>
> yes, 3.0.1 will be release soon (I'm a bit late on this but I will work on
> that during the week end).
>
> 3.1.0 doesn't exist anymore for now (master is 4.0.0-SNAPSHOT).
>
> So, yes, Java8 will be support by 3.0.1 and 4.0.0 (and eventually 3.1.0 if
> we decide to create the branch at some point).
>
> Regards
> JB
>
>
> On 03/28/2014 10:35 AM, CLEMENT Jean-Philippe wrote:
>
>> Excellent :)
>>
>> I guess 3.0.1 should be released soon (at least as a RC)?
>>
>> PS: is Java 8 part of 3.0.1 or 3.1.0?
>>
>> JP
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
>> Envoyé : jeudi 27 mars 2014 19:23
>> À : user@karaf.apache.org
>> Objet : Re: Karaf & Java8
>>
>> Hi Charlie,
>>
>> Yes, 3.0.1 and 4.0.0 will have Java8 support.
>>
>> Regards
>> JB
>>
>> On 03/27/2014 07:17 PM, Charlie Mordant wrote:
>>
>>> Hi JB, JP,
>>>
>>> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
>>> for sharp devs ;).
>>>
>>> Regards,
>>>
>>>
>>> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
>>> <ma...@nanthrax.net>>:
>>>
>>>       Hi JP,
>>>
>>>       it works straight forward for me using ASM 5.0.1. I will rebase my
>>>       local branch and merge on master.
>>>
>>>       Regards
>>>       JB
>>>
>>>
>>>       On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>>>
>>>           Hi JB,
>>>
>>>           Some modules which have been compiled with Java 8 fail to start.
>>>           The problem is I have no clue if it's due to Karaf/Java8 or
>>>           not... I'm stuck :S
>>>
>>>           Did you make any progress?
>>>
>>>           JP
>>>
>>>           [@@ THALES GROUP INTERNAL @@]
>>>
>>>
>>>           -----Message d'origine-----
>>>           De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>           <ma...@nanthrax.net>]
>>>           Envoyé : lundi 24 mars 2014 12:11
>>>           À : user@karaf.apache.org <ma...@karaf.apache.org>
>>>           Objet : Re: Karaf & Java8
>>>
>>>           Hi JP
>>>
>>>           for Karaf itself no, the point is more on the Aries Proxy side.
>>>
>>>           I plan to push something about that later today (I'm in the US
>>>           this week).
>>>
>>>           Regards
>>>           JB
>>>
>>>           On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>>
>>>               Hi Jean-Baptiste,
>>>
>>>               FYI, ASM has been updated to 5.0.1: " This is a maintenance
>>>               version which fixes a few important bugs found in the 5.0
>>>               version ".
>>>
>>>               Do you think it will take long to catch up with ASM 5 /
>>> Java8?
>>>
>>>               JP
>>>
>>>               [@@ OPEN @@]
>>>               -----Message d'origine-----
>>>               De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>               <ma...@nanthrax.net>] Envoyé : mercredi
>>>               19 mars 2014 10:19 À : user@karaf.apache.org
>>>               <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>>>
>>>               Hi JP,
>>>
>>>               FYI, I updated the Jira this morning, I will work on ASM5
>>>               update today.
>>>
>>>               Regards
>>>               JB
>>>
>>>               On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>>
>>>                   Hi JB,
>>>
>>>                   How may I download the 3.1.0-SNAPSHOT?
>>>
>>>                   Regards,
>>>                   JP
>>>
>>>                   [@@ THALES GROUP INTERNAL @@]
>>>
>>>                   -----Message d'origine-----
>>>                   De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>                   <ma...@nanthrax.net>] Envoyé : lundi 17
>>>                   mars 2014 10:55 À : user@karaf.apache.org
>>>                   <ma...@karaf.apache.org> Objet : Re: Karaf &
>>> Java8
>>>
>>>                   Hi JP,
>>>
>>>                   Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>>>                   the update on master (especially the impact on
>>> blueprint).
>>>
>>>                   Regards
>>>                   JB
>>>
>>>                   On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>>
>>>                       Dear Karaf-ers,
>>>
>>>                       ASM 5 is released so it may be used in Karaf to get
>>>                       Java 8 support:
>>>
>>>                       "This version is fully backward compatible with ASM
>>>                       5.0 BETA (itself binary compatible with the 4.x
>>>                       versions) and provides full support for the new Java
>>>                       8 class format features. However, new dynamic checks
>>>                       have been added in order to make sure that ASM
>>>                       version numbers (e.g.
>>>                       Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>>>                       at runtime by subclasses of the ASM classes (as
>>>                       documented in the API).
>>>
>>>                       Another major difference is that
>>>                       visitMethodInsn(int,String,__String,String) is now
>>>                       deprecated, and replaced with
>>>                       visitMethodInsn(int,String,__String,String,boolean)
>>>                       -- in order to support invokespecial and
>>>                       invokestatic on interfaces in Java 8.
>>>                       Visitors declared with the Opcodes.ASM5 version MUST
>>>                       use this new
>>>                       method instead of the deprecated one (old visitors
>>>                       using the
>>>                       Opcodes.ASM4 and using the deprecated method will
>>>                       continue to work).
>>>                       See chapters 5 and
>>>                       10 of the User Guide
>>>                       (http://download.forge.__objec
>>> tweb.org/asm/asm4-guide.__pdf
>>>                       <http://download.forge.objectweb.org/asm/asm4-guide.
>>> pdf>)
>>>                       for more details."
>>>
>>>                       I'm not familiar with ASM at all, but I would like
>>>                       to get Java 8
>>>                       support :)
>>>
>>>                       How may I help? Is there already a Karaf 3.1.0 beta
>>>                       version?
>>>
>>>                       Regards,
>>>                       JP
>>>
>>>                       -----Message d'origine-----
>>>                       De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>>                       <ma...@nanthrax.net>] Envoyé : vendredi
>>>                       13 décembre 2013 17:10 À : user@karaf.apache.org
>>>                       <ma...@karaf.apache.org> Objet : Re: Karaf &
>>>                       Java8
>>>
>>>                       It's exactly what I suspect about Aries Proxy and
>>> ASM.
>>>
>>>                       You will have a bunch of feature that won't work.
>>>
>>>                       I gonna check the version range.
>>>
>>>                       Regards
>>>                       JB
>>>
>>>                       On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>
>>>                           I found that ASM is installed as any normal
>>>                           bundle within Karaf. So I installed the v5-beta
>>>                           with same start level and removed the old one.
>>>                           For the moment it seems to work with Java 8, the
>>>                           only thing is that the log is full of "unable to
>>>                           create a proxy object for ... returning the
>>>                           original object instead."
>>>
>>>                           JP
>>>
>>>
>>>                           -----Message d'origine-----
>>>                           De : Jean-Baptiste Onofré
>>>                           [mailto:jb@nanthrax.net
>>>                           <ma...@nanthrax.net>] Envoyé :
>>>                           vendredi
>>>                           13 décembre 2013 10:24 À : user@karaf.apache.org
>>>                           <ma...@karaf.apache.org> Objet : Re: Karaf
>>>                           &
>>>                           Java8
>>>
>>>                           Hi JP,
>>>
>>>                           as ASM 5 is still beta, we don't upgrade in
>>>                           Karaf (or after 3.0.0 on trunk).
>>>
>>>                           As Aries Proxy also use ASM, I don't think that
>>>                           Aries tested ASM 5 beta at all. So not sure it
>>>                           will work "out of the box".
>>>
>>>                           Regards
>>>                           JB
>>>
>>>                           On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe
>>> wrote:
>>>
>>>                               It looks like ASM 5 beta supports Java8
>>>                               which is great news.
>>>
>>>                               Is there a way to patch Karaf?
>>>
>>>                               Regards,
>>>                               JP
>>>
>>>                               [@@ OPEN @@]
>>>
>>>                               -----Message d'origine-----
>>>                               De : Jean-Baptiste Onofré
>>>                               [mailto:jb@nanthrax.net
>>>                               <ma...@nanthrax.net>] Envoyé : jeudi
>>>                               5 décembre 2013 14:22 À :
>>>                               user@karaf.apache.org
>>>                               <ma...@karaf.apache.org> Objet : Re:
>>> Karaf
>>>                               &
>>>                               Java8
>>>
>>>                               It depends if we need an ASM update or not.
>>>
>>>                               Let me take a quick look on that, I will get
>>>                               back to you (at least in the Jira).
>>>
>>>                               Regards
>>>                               JB
>>>
>>>                               On 12/05/2013 02:14 PM, CLEMENT
>>>                               Jean-Philippe wrote:
>>>
>>>                                   Ok, well... from your experience, when
>>>                                   could I expect a Java8 compliant version
>>>                                   of Karaf?
>>>
>>>                                   JP
>>>
>>>                                   -----Message d'origine-----
>>>                                   De : Jean-Baptiste Onofré
>>>                                   [mailto:jb@nanthrax.net
>>>                                   <ma...@nanthrax.net>] Envoyé : jeudi
>>>                                   5 décembre 2013 13:59 À :
>>>                                   user@karaf.apache.org
>>>                                   <ma...@karaf.apache.org> Objet :
>>>                                   Re: Karaf
>>>                                   &
>>>                                   Java8
>>>
>>>                                   Hi Jean-Philippe,
>>>
>>>                                   not yet, we have to work on ASM for full
>>>                                   support.
>>>
>>>                                   I gonna take a look on that just after
>>>                                   Karaf 3.0.0 release.
>>>
>>>                                   Regards
>>>                                   JB
>>>
>>>                                   On 12/05/2013 01:50 PM, CLEMENT
>>>                                   Jean-Philippe wrote:
>>>
>>>                                       Dear Karaf experts,
>>>
>>>                                       It seems Karaf 3.0.0 RC1 doesn't
>>>                                       work with Java8 (KARAF-2562).
>>>                                       Is there a workaround?
>>>
>>>                                       JP
>>>
>>>
>>>                                   --
>>>                                   Jean-Baptiste Onofré
>>>                                   jbonofre@apache.org
>>>                                   <ma...@apache.org>
>>>                                   http://blog.nanthrax.net
>>>                                   Talend - http://www.talend.com
>>>
>>>
>>>                               --
>>>                               Jean-Baptiste Onofré
>>>                               jbonofre@apache.org <mailto:
>>> jbonofre@apache.org>
>>>                               http://blog.nanthrax.net
>>>                               Talend - http://www.talend.com
>>>
>>>
>>>                           --
>>>                           Jean-Baptiste Onofré
>>>                           jbonofre@apache.org <ma...@apache.org>
>>>                           http://blog.nanthrax.net
>>>                           Talend - http://www.talend.com
>>>
>>>
>>>                       --
>>>                       Jean-Baptiste Onofré
>>>                       jbonofre@apache.org <ma...@apache.org>
>>>                       http://blog.nanthrax.net
>>>                       Talend - http://www.talend.com
>>>
>>>
>>>                   --
>>>                   Jean-Baptiste Onofré
>>>                   jbonofre@apache.org <ma...@apache.org>
>>>                   http://blog.nanthrax.net
>>>                   Talend - http://www.talend.com
>>>
>>>
>>>               --
>>>               Jean-Baptiste Onofré
>>>               jbonofre@apache.org <ma...@apache.org>
>>>               http://blog.nanthrax.net
>>>               Talend - http://www.talend.com
>>>
>>>
>>>           --
>>>           Jean-Baptiste Onofré
>>>           jbonofre@apache.org <ma...@apache.org>
>>>           http://blog.nanthrax.net
>>>           Talend - http://www.talend.com
>>>
>>>
>>>       --
>>>       Jean-Baptiste Onofré
>>>       jbonofre@apache.org <ma...@apache.org>
>>>       http://blog.nanthrax.net
>>>       Talend - http://www.talend.com
>>>
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Fwd: Karaf & Java8

Posted by Andreas Pieber <an...@gmail.com>.
I really think that we should create a 3.1 branch soon again (directly
before Gulliaumes commits), since 4.0 is simply too far in the future and
new features on micro releases are not following the semvers specification.

Kind regards,
Andreas

---------- Forwarded message ----------
From: Jean-Baptiste Onofré <jb...@nanthrax.net>
Date: Fri, Mar 28, 2014 at 11:01 AM
Subject: Re: Karaf & Java8
To: user@karaf.apache.org


Hi JP,

yes, 3.0.1 will be release soon (I'm a bit late on this but I will work on
that during the week end).

3.1.0 doesn't exist anymore for now (master is 4.0.0-SNAPSHOT).

So, yes, Java8 will be support by 3.0.1 and 4.0.0 (and eventually 3.1.0 if
we decide to create the branch at some point).

Regards
JB


On 03/28/2014 10:35 AM, CLEMENT Jean-Philippe wrote:

> Excellent :)
>
> I guess 3.0.1 should be released soon (at least as a RC)?
>
> PS: is Java 8 part of 3.0.1 or 3.1.0?
>
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 27 mars 2014 19:23
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi Charlie,
>
> Yes, 3.0.1 and 4.0.0 will have Java8 support.
>
> Regards
> JB
>
> On 03/27/2014 07:17 PM, Charlie Mordant wrote:
>
>> Hi JB, JP,
>>
>> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
>> for sharp devs ;).
>>
>> Regards,
>>
>>
>> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>>      Hi JP,
>>
>>      it works straight forward for me using ASM 5.0.1. I will rebase my
>>      local branch and merge on master.
>>
>>      Regards
>>      JB
>>
>>
>>      On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>>
>>          Hi JB,
>>
>>          Some modules which have been compiled with Java 8 fail to start.
>>          The problem is I have no clue if it's due to Karaf/Java8 or
>>          not... I'm stuck :S
>>
>>          Did you make any progress?
>>
>>          JP
>>
>>          [@@ THALES GROUP INTERNAL @@]
>>
>>
>>          -----Message d'origine-----
>>          De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>          <ma...@nanthrax.net>]
>>          Envoyé : lundi 24 mars 2014 12:11
>>          À : user@karaf.apache.org <ma...@karaf.apache.org>
>>          Objet : Re: Karaf & Java8
>>
>>          Hi JP
>>
>>          for Karaf itself no, the point is more on the Aries Proxy side.
>>
>>          I plan to push something about that later today (I'm in the US
>>          this week).
>>
>>          Regards
>>          JB
>>
>>          On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>
>>              Hi Jean-Baptiste,
>>
>>              FYI, ASM has been updated to 5.0.1: " This is a maintenance
>>              version which fixes a few important bugs found in the 5.0
>>              version ".
>>
>>              Do you think it will take long to catch up with ASM 5 /
>> Java8?
>>
>>              JP
>>
>>              [@@ OPEN @@]
>>              -----Message d'origine-----
>>              De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>              <ma...@nanthrax.net>] Envoyé : mercredi
>>              19 mars 2014 10:19 À : user@karaf.apache.org
>>              <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>>
>>              Hi JP,
>>
>>              FYI, I updated the Jira this morning, I will work on ASM5
>>              update today.
>>
>>              Regards
>>              JB
>>
>>              On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>
>>                  Hi JB,
>>
>>                  How may I download the 3.1.0-SNAPSHOT?
>>
>>                  Regards,
>>                  JP
>>
>>                  [@@ THALES GROUP INTERNAL @@]
>>
>>                  -----Message d'origine-----
>>                  De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>                  <ma...@nanthrax.net>] Envoyé : lundi 17
>>                  mars 2014 10:55 À : user@karaf.apache.org
>>                  <ma...@karaf.apache.org> Objet : Re: Karaf &
>> Java8
>>
>>                  Hi JP,
>>
>>                  Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>>                  the update on master (especially the impact on
>> blueprint).
>>
>>                  Regards
>>                  JB
>>
>>                  On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>
>>                      Dear Karaf-ers,
>>
>>                      ASM 5 is released so it may be used in Karaf to get
>>                      Java 8 support:
>>
>>                      "This version is fully backward compatible with ASM
>>                      5.0 BETA (itself binary compatible with the 4.x
>>                      versions) and provides full support for the new Java
>>                      8 class format features. However, new dynamic checks
>>                      have been added in order to make sure that ASM
>>                      version numbers (e.g.
>>                      Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>>                      at runtime by subclasses of the ASM classes (as
>>                      documented in the API).
>>
>>                      Another major difference is that
>>                      visitMethodInsn(int,String,__String,String) is now
>>                      deprecated, and replaced with
>>                      visitMethodInsn(int,String,__String,String,boolean)
>>                      -- in order to support invokespecial and
>>                      invokestatic on interfaces in Java 8.
>>                      Visitors declared with the Opcodes.ASM5 version MUST
>>                      use this new
>>                      method instead of the deprecated one (old visitors
>>                      using the
>>                      Opcodes.ASM4 and using the deprecated method will
>>                      continue to work).
>>                      See chapters 5 and
>>                      10 of the User Guide
>>                      (http://download.forge.__objec
>> tweb.org/asm/asm4-guide.__pdf
>>                      <http://download.forge.objectweb.org/asm/asm4-guide.
>> pdf>)
>>                      for more details."
>>
>>                      I'm not familiar with ASM at all, but I would like
>>                      to get Java 8
>>                      support :)
>>
>>                      How may I help? Is there already a Karaf 3.1.0 beta
>>                      version?
>>
>>                      Regards,
>>                      JP
>>
>>                      -----Message d'origine-----
>>                      De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>                      <ma...@nanthrax.net>] Envoyé : vendredi
>>                      13 décembre 2013 17:10 À : user@karaf.apache.org
>>                      <ma...@karaf.apache.org> Objet : Re: Karaf &
>>                      Java8
>>
>>                      It's exactly what I suspect about Aries Proxy and
>> ASM.
>>
>>                      You will have a bunch of feature that won't work.
>>
>>                      I gonna check the version range.
>>
>>                      Regards
>>                      JB
>>
>>                      On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>
>>                          I found that ASM is installed as any normal
>>                          bundle within Karaf. So I installed the v5-beta
>>                          with same start level and removed the old one.
>>                          For the moment it seems to work with Java 8, the
>>                          only thing is that the log is full of "unable to
>>                          create a proxy object for ... returning the
>>                          original object instead."
>>
>>                          JP
>>
>>
>>                          -----Message d'origine-----
>>                          De : Jean-Baptiste Onofré
>>                          [mailto:jb@nanthrax.net
>>                          <ma...@nanthrax.net>] Envoyé :
>>                          vendredi
>>                          13 décembre 2013 10:24 À : user@karaf.apache.org
>>                          <ma...@karaf.apache.org> Objet : Re: Karaf
>>                          &
>>                          Java8
>>
>>                          Hi JP,
>>
>>                          as ASM 5 is still beta, we don't upgrade in
>>                          Karaf (or after 3.0.0 on trunk).
>>
>>                          As Aries Proxy also use ASM, I don't think that
>>                          Aries tested ASM 5 beta at all. So not sure it
>>                          will work "out of the box".
>>
>>                          Regards
>>                          JB
>>
>>                          On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe
>> wrote:
>>
>>                              It looks like ASM 5 beta supports Java8
>>                              which is great news.
>>
>>                              Is there a way to patch Karaf?
>>
>>                              Regards,
>>                              JP
>>
>>                              [@@ OPEN @@]
>>
>>                              -----Message d'origine-----
>>                              De : Jean-Baptiste Onofré
>>                              [mailto:jb@nanthrax.net
>>                              <ma...@nanthrax.net>] Envoyé : jeudi
>>                              5 décembre 2013 14:22 À :
>>                              user@karaf.apache.org
>>                              <ma...@karaf.apache.org> Objet : Re:
>> Karaf
>>                              &
>>                              Java8
>>
>>                              It depends if we need an ASM update or not.
>>
>>                              Let me take a quick look on that, I will get
>>                              back to you (at least in the Jira).
>>
>>                              Regards
>>                              JB
>>
>>                              On 12/05/2013 02:14 PM, CLEMENT
>>                              Jean-Philippe wrote:
>>
>>                                  Ok, well... from your experience, when
>>                                  could I expect a Java8 compliant version
>>                                  of Karaf?
>>
>>                                  JP
>>
>>                                  -----Message d'origine-----
>>                                  De : Jean-Baptiste Onofré
>>                                  [mailto:jb@nanthrax.net
>>                                  <ma...@nanthrax.net>] Envoyé : jeudi
>>                                  5 décembre 2013 13:59 À :
>>                                  user@karaf.apache.org
>>                                  <ma...@karaf.apache.org> Objet :
>>                                  Re: Karaf
>>                                  &
>>                                  Java8
>>
>>                                  Hi Jean-Philippe,
>>
>>                                  not yet, we have to work on ASM for full
>>                                  support.
>>
>>                                  I gonna take a look on that just after
>>                                  Karaf 3.0.0 release.
>>
>>                                  Regards
>>                                  JB
>>
>>                                  On 12/05/2013 01:50 PM, CLEMENT
>>                                  Jean-Philippe wrote:
>>
>>                                      Dear Karaf experts,
>>
>>                                      It seems Karaf 3.0.0 RC1 doesn't
>>                                      work with Java8 (KARAF-2562).
>>                                      Is there a workaround?
>>
>>                                      JP
>>
>>
>>                                  --
>>                                  Jean-Baptiste Onofré
>>                                  jbonofre@apache.org
>>                                  <ma...@apache.org>
>>                                  http://blog.nanthrax.net
>>                                  Talend - http://www.talend.com
>>
>>
>>                              --
>>                              Jean-Baptiste Onofré
>>                              jbonofre@apache.org <mailto:
>> jbonofre@apache.org>
>>                              http://blog.nanthrax.net
>>                              Talend - http://www.talend.com
>>
>>
>>                          --
>>                          Jean-Baptiste Onofré
>>                          jbonofre@apache.org <ma...@apache.org>
>>                          http://blog.nanthrax.net
>>                          Talend - http://www.talend.com
>>
>>
>>                      --
>>                      Jean-Baptiste Onofré
>>                      jbonofre@apache.org <ma...@apache.org>
>>                      http://blog.nanthrax.net
>>                      Talend - http://www.talend.com
>>
>>
>>                  --
>>                  Jean-Baptiste Onofré
>>                  jbonofre@apache.org <ma...@apache.org>
>>                  http://blog.nanthrax.net
>>                  Talend - http://www.talend.com
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>              jbonofre@apache.org <ma...@apache.org>
>>              http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>          --
>>          Jean-Baptiste Onofré
>>          jbonofre@apache.org <ma...@apache.org>
>>          http://blog.nanthrax.net
>>          Talend - http://www.talend.com
>>
>>
>>      --
>>      Jean-Baptiste Onofré
>>      jbonofre@apache.org <ma...@apache.org>
>>      http://blog.nanthrax.net
>>      Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Also, you may know that Java 8 includes JavaFX so the jre.properties should be updated to export JavaFX packages.

I attached an updated version containing all JavaFX packages (in the Java8 section).

JP

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Envoyé : vendredi 28 mars 2014 11:02
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

Hi JP,

yes, 3.0.1 will be release soon (I'm a bit late on this but I will work on that during the week end).

3.1.0 doesn't exist anymore for now (master is 4.0.0-SNAPSHOT).

So, yes, Java8 will be support by 3.0.1 and 4.0.0 (and eventually 3.1.0 if we decide to create the branch at some point).

Regards
JB

On 03/28/2014 10:35 AM, CLEMENT Jean-Philippe wrote:
> Excellent :)
>
> I guess 3.0.1 should be released soon (at least as a RC)?
>
> PS: is Java 8 part of 3.0.1 or 3.1.0?
>
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 27
> mars 2014 19:23 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>
> Hi Charlie,
>
> Yes, 3.0.1 and 4.0.0 will have Java8 support.
>
> Regards
> JB
>
> On 03/27/2014 07:17 PM, Charlie Mordant wrote:
>> Hi JB, JP,
>>
>> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
>> for sharp devs ;).
>>
>> Regards,
>>
>>
>> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>>      Hi JP,
>>
>>      it works straight forward for me using ASM 5.0.1. I will rebase my
>>      local branch and merge on master.
>>
>>      Regards
>>      JB
>>
>>
>>      On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>>
>>          Hi JB,
>>
>>          Some modules which have been compiled with Java 8 fail to start.
>>          The problem is I have no clue if it's due to Karaf/Java8 or
>>          not... I'm stuck :S
>>
>>          Did you make any progress?
>>
>>          JP
>>
>>          [@@ THALES GROUP INTERNAL @@]
>>
>>
>>          -----Message d'origine-----
>>          De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>          <ma...@nanthrax.net>]
>>          Envoyé : lundi 24 mars 2014 12:11
>>          À : user@karaf.apache.org <ma...@karaf.apache.org>
>>          Objet : Re: Karaf & Java8
>>
>>          Hi JP
>>
>>          for Karaf itself no, the point is more on the Aries Proxy side.
>>
>>          I plan to push something about that later today (I'm in the US
>>          this week).
>>
>>          Regards
>>          JB
>>
>>          On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>
>>              Hi Jean-Baptiste,
>>
>>              FYI, ASM has been updated to 5.0.1: " This is a maintenance
>>              version which fixes a few important bugs found in the 5.0
>>              version ".
>>
>>              Do you think it will take long to catch up with ASM 5 / Java8?
>>
>>              JP
>>
>>              [@@ OPEN @@]
>>              -----Message d'origine-----
>>              De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>              <ma...@nanthrax.net>] Envoyé : mercredi
>>              19 mars 2014 10:19 À : user@karaf.apache.org
>>              <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>>
>>              Hi JP,
>>
>>              FYI, I updated the Jira this morning, I will work on ASM5
>>              update today.
>>
>>              Regards
>>              JB
>>
>>              On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>
>>                  Hi JB,
>>
>>                  How may I download the 3.1.0-SNAPSHOT?
>>
>>                  Regards,
>>                  JP
>>
>>                  [@@ THALES GROUP INTERNAL @@]
>>
>>                  -----Message d'origine-----
>>                  De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>                  <ma...@nanthrax.net>] Envoyé : lundi 17
>>                  mars 2014 10:55 À : user@karaf.apache.org
>>                  <ma...@karaf.apache.org> Objet : Re: Karaf &
>> Java8
>>
>>                  Hi JP,
>>
>>                  Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>>                  the update on master (especially the impact on blueprint).
>>
>>                  Regards
>>                  JB
>>
>>                  On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>
>>                      Dear Karaf-ers,
>>
>>                      ASM 5 is released so it may be used in Karaf to get
>>                      Java 8 support:
>>
>>                      "This version is fully backward compatible with ASM
>>                      5.0 BETA (itself binary compatible with the 4.x
>>                      versions) and provides full support for the new Java
>>                      8 class format features. However, new dynamic checks
>>                      have been added in order to make sure that ASM
>>                      version numbers (e.g.
>>                      Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>>                      at runtime by subclasses of the ASM classes (as
>>                      documented in the API).
>>
>>                      Another major difference is that
>>                      visitMethodInsn(int,String,__String,String) is now
>>                      deprecated, and replaced with
>>                      visitMethodInsn(int,String,__String,String,boolean)
>>                      -- in order to support invokespecial and
>>                      invokestatic on interfaces in Java 8.
>>                      Visitors declared with the Opcodes.ASM5 version MUST
>>                      use this new
>>                      method instead of the deprecated one (old visitors
>>                      using the
>>                      Opcodes.ASM4 and using the deprecated method will
>>                      continue to work).
>>                      See chapters 5 and
>>                      10 of the User Guide
>>                      (http://download.forge.__objectweb.org/asm/asm4-guide.__pdf
>>                      <http://download.forge.objectweb.org/asm/asm4-guide.pdf>)
>>                      for more details."
>>
>>                      I'm not familiar with ASM at all, but I would like
>>                      to get Java 8
>>                      support :)
>>
>>                      How may I help? Is there already a Karaf 3.1.0 beta
>>                      version?
>>
>>                      Regards,
>>                      JP
>>
>>                      -----Message d'origine-----
>>                      De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>                      <ma...@nanthrax.net>] Envoyé : vendredi
>>                      13 décembre 2013 17:10 À : user@karaf.apache.org
>>                      <ma...@karaf.apache.org> Objet : Re: Karaf &
>>                      Java8
>>
>>                      It's exactly what I suspect about Aries Proxy and ASM.
>>
>>                      You will have a bunch of feature that won't work.
>>
>>                      I gonna check the version range.
>>
>>                      Regards
>>                      JB
>>
>>                      On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>
>>                          I found that ASM is installed as any normal
>>                          bundle within Karaf. So I installed the v5-beta
>>                          with same start level and removed the old one.
>>                          For the moment it seems to work with Java 8, the
>>                          only thing is that the log is full of "unable to
>>                          create a proxy object for ... returning the
>>                          original object instead."
>>
>>                          JP
>>
>>
>>                          -----Message d'origine-----
>>                          De : Jean-Baptiste Onofré
>>                          [mailto:jb@nanthrax.net
>>                          <ma...@nanthrax.net>] Envoyé :
>>                          vendredi
>>                          13 décembre 2013 10:24 À : user@karaf.apache.org
>>                          <ma...@karaf.apache.org> Objet : Re: Karaf
>>                          &
>>                          Java8
>>
>>                          Hi JP,
>>
>>                          as ASM 5 is still beta, we don't upgrade in
>>                          Karaf (or after 3.0.0 on trunk).
>>
>>                          As Aries Proxy also use ASM, I don't think that
>>                          Aries tested ASM 5 beta at all. So not sure it
>>                          will work "out of the box".
>>
>>                          Regards
>>                          JB
>>
>>                          On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>
>>                              It looks like ASM 5 beta supports Java8
>>                              which is great news.
>>
>>                              Is there a way to patch Karaf?
>>
>>                              Regards,
>>                              JP
>>
>>                              [@@ OPEN @@]
>>
>>                              -----Message d'origine-----
>>                              De : Jean-Baptiste Onofré
>>                              [mailto:jb@nanthrax.net
>>                              <ma...@nanthrax.net>] Envoyé : jeudi
>>                              5 décembre 2013 14:22 À :
>>                              user@karaf.apache.org
>>                              <ma...@karaf.apache.org> Objet : Re: Karaf
>>                              &
>>                              Java8
>>
>>                              It depends if we need an ASM update or not.
>>
>>                              Let me take a quick look on that, I will get
>>                              back to you (at least in the Jira).
>>
>>                              Regards
>>                              JB
>>
>>                              On 12/05/2013 02:14 PM, CLEMENT
>>                              Jean-Philippe wrote:
>>
>>                                  Ok, well... from your experience, when
>>                                  could I expect a Java8 compliant version
>>                                  of Karaf?
>>
>>                                  JP
>>
>>                                  -----Message d'origine-----
>>                                  De : Jean-Baptiste Onofré
>>                                  [mailto:jb@nanthrax.net
>>                                  <ma...@nanthrax.net>] Envoyé : jeudi
>>                                  5 décembre 2013 13:59 À :
>>                                  user@karaf.apache.org
>>                                  <ma...@karaf.apache.org> Objet :
>>                                  Re: Karaf
>>                                  &
>>                                  Java8
>>
>>                                  Hi Jean-Philippe,
>>
>>                                  not yet, we have to work on ASM for full
>>                                  support.
>>
>>                                  I gonna take a look on that just after
>>                                  Karaf 3.0.0 release.
>>
>>                                  Regards
>>                                  JB
>>
>>                                  On 12/05/2013 01:50 PM, CLEMENT
>>                                  Jean-Philippe wrote:
>>
>>                                      Dear Karaf experts,
>>
>>                                      It seems Karaf 3.0.0 RC1 doesn't
>>                                      work with Java8 (KARAF-2562).
>>                                      Is there a workaround?
>>
>>                                      JP
>>
>>
>>                                  --
>>                                  Jean-Baptiste Onofré
>>                                  jbonofre@apache.org
>>                                  <ma...@apache.org>
>>                                  http://blog.nanthrax.net
>>                                  Talend - http://www.talend.com
>>
>>
>>                              --
>>                              Jean-Baptiste Onofré
>>                              jbonofre@apache.org <ma...@apache.org>
>>                              http://blog.nanthrax.net
>>                              Talend - http://www.talend.com
>>
>>
>>                          --
>>                          Jean-Baptiste Onofré
>>                          jbonofre@apache.org <ma...@apache.org>
>>                          http://blog.nanthrax.net
>>                          Talend - http://www.talend.com
>>
>>
>>                      --
>>                      Jean-Baptiste Onofré
>>                      jbonofre@apache.org <ma...@apache.org>
>>                      http://blog.nanthrax.net
>>                      Talend - http://www.talend.com
>>
>>
>>                  --
>>                  Jean-Baptiste Onofré
>>                  jbonofre@apache.org <ma...@apache.org>
>>                  http://blog.nanthrax.net
>>                  Talend - http://www.talend.com
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>              jbonofre@apache.org <ma...@apache.org>
>>              http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>          --
>>          Jean-Baptiste Onofré
>>          jbonofre@apache.org <ma...@apache.org>
>>          http://blog.nanthrax.net
>>          Talend - http://www.talend.com
>>
>>
>>      --
>>      Jean-Baptiste Onofré
>>      jbonofre@apache.org <ma...@apache.org>
>>      http://blog.nanthrax.net
>>      Talend - http://www.talend.com
>>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

yes, 3.0.1 will be release soon (I'm a bit late on this but I will work 
on that during the week end).

3.1.0 doesn't exist anymore for now (master is 4.0.0-SNAPSHOT).

So, yes, Java8 will be support by 3.0.1 and 4.0.0 (and eventually 3.1.0 
if we decide to create the branch at some point).

Regards
JB

On 03/28/2014 10:35 AM, CLEMENT Jean-Philippe wrote:
> Excellent :)
>
> I guess 3.0.1 should be released soon (at least as a RC)?
>
> PS: is Java 8 part of 3.0.1 or 3.1.0?
>
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 27 mars 2014 19:23
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi Charlie,
>
> Yes, 3.0.1 and 4.0.0 will have Java8 support.
>
> Regards
> JB
>
> On 03/27/2014 07:17 PM, Charlie Mordant wrote:
>> Hi JB, JP,
>>
>> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
>> for sharp devs ;).
>>
>> Regards,
>>
>>
>> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>>      Hi JP,
>>
>>      it works straight forward for me using ASM 5.0.1. I will rebase my
>>      local branch and merge on master.
>>
>>      Regards
>>      JB
>>
>>
>>      On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>>
>>          Hi JB,
>>
>>          Some modules which have been compiled with Java 8 fail to start.
>>          The problem is I have no clue if it's due to Karaf/Java8 or
>>          not... I'm stuck :S
>>
>>          Did you make any progress?
>>
>>          JP
>>
>>          [@@ THALES GROUP INTERNAL @@]
>>
>>
>>          -----Message d'origine-----
>>          De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>          <ma...@nanthrax.net>]
>>          Envoyé : lundi 24 mars 2014 12:11
>>          À : user@karaf.apache.org <ma...@karaf.apache.org>
>>          Objet : Re: Karaf & Java8
>>
>>          Hi JP
>>
>>          for Karaf itself no, the point is more on the Aries Proxy side.
>>
>>          I plan to push something about that later today (I'm in the US
>>          this week).
>>
>>          Regards
>>          JB
>>
>>          On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>
>>              Hi Jean-Baptiste,
>>
>>              FYI, ASM has been updated to 5.0.1: " This is a maintenance
>>              version which fixes a few important bugs found in the 5.0
>>              version ".
>>
>>              Do you think it will take long to catch up with ASM 5 / Java8?
>>
>>              JP
>>
>>              [@@ OPEN @@]
>>              -----Message d'origine-----
>>              De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>              <ma...@nanthrax.net>] Envoyé : mercredi
>>              19 mars 2014 10:19 À : user@karaf.apache.org
>>              <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>>
>>              Hi JP,
>>
>>              FYI, I updated the Jira this morning, I will work on ASM5
>>              update today.
>>
>>              Regards
>>              JB
>>
>>              On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>
>>                  Hi JB,
>>
>>                  How may I download the 3.1.0-SNAPSHOT?
>>
>>                  Regards,
>>                  JP
>>
>>                  [@@ THALES GROUP INTERNAL @@]
>>
>>                  -----Message d'origine-----
>>                  De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>                  <ma...@nanthrax.net>] Envoyé : lundi 17
>>                  mars 2014 10:55 À : user@karaf.apache.org
>>                  <ma...@karaf.apache.org> Objet : Re: Karaf &
>> Java8
>>
>>                  Hi JP,
>>
>>                  Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>>                  the update on master (especially the impact on blueprint).
>>
>>                  Regards
>>                  JB
>>
>>                  On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>
>>                      Dear Karaf-ers,
>>
>>                      ASM 5 is released so it may be used in Karaf to get
>>                      Java 8 support:
>>
>>                      "This version is fully backward compatible with ASM
>>                      5.0 BETA (itself binary compatible with the 4.x
>>                      versions) and provides full support for the new Java
>>                      8 class format features. However, new dynamic checks
>>                      have been added in order to make sure that ASM
>>                      version numbers (e.g.
>>                      Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>>                      at runtime by subclasses of the ASM classes (as
>>                      documented in the API).
>>
>>                      Another major difference is that
>>                      visitMethodInsn(int,String,__String,String) is now
>>                      deprecated, and replaced with
>>                      visitMethodInsn(int,String,__String,String,boolean)
>>                      -- in order to support invokespecial and
>>                      invokestatic on interfaces in Java 8.
>>                      Visitors declared with the Opcodes.ASM5 version MUST
>>                      use this new
>>                      method instead of the deprecated one (old visitors
>>                      using the
>>                      Opcodes.ASM4 and using the deprecated method will
>>                      continue to work).
>>                      See chapters 5 and
>>                      10 of the User Guide
>>                      (http://download.forge.__objectweb.org/asm/asm4-guide.__pdf
>>                      <http://download.forge.objectweb.org/asm/asm4-guide.pdf>)
>>                      for more details."
>>
>>                      I'm not familiar with ASM at all, but I would like
>>                      to get Java 8
>>                      support :)
>>
>>                      How may I help? Is there already a Karaf 3.1.0 beta
>>                      version?
>>
>>                      Regards,
>>                      JP
>>
>>                      -----Message d'origine-----
>>                      De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>                      <ma...@nanthrax.net>] Envoyé : vendredi
>>                      13 décembre 2013 17:10 À : user@karaf.apache.org
>>                      <ma...@karaf.apache.org> Objet : Re: Karaf &
>>                      Java8
>>
>>                      It's exactly what I suspect about Aries Proxy and ASM.
>>
>>                      You will have a bunch of feature that won't work.
>>
>>                      I gonna check the version range.
>>
>>                      Regards
>>                      JB
>>
>>                      On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>
>>                          I found that ASM is installed as any normal
>>                          bundle within Karaf. So I installed the v5-beta
>>                          with same start level and removed the old one.
>>                          For the moment it seems to work with Java 8, the
>>                          only thing is that the log is full of "unable to
>>                          create a proxy object for ... returning the
>>                          original object instead."
>>
>>                          JP
>>
>>
>>                          -----Message d'origine-----
>>                          De : Jean-Baptiste Onofré
>>                          [mailto:jb@nanthrax.net
>>                          <ma...@nanthrax.net>] Envoyé :
>>                          vendredi
>>                          13 décembre 2013 10:24 À : user@karaf.apache.org
>>                          <ma...@karaf.apache.org> Objet : Re: Karaf
>>                          &
>>                          Java8
>>
>>                          Hi JP,
>>
>>                          as ASM 5 is still beta, we don't upgrade in
>>                          Karaf (or after 3.0.0 on trunk).
>>
>>                          As Aries Proxy also use ASM, I don't think that
>>                          Aries tested ASM 5 beta at all. So not sure it
>>                          will work "out of the box".
>>
>>                          Regards
>>                          JB
>>
>>                          On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>
>>                              It looks like ASM 5 beta supports Java8
>>                              which is great news.
>>
>>                              Is there a way to patch Karaf?
>>
>>                              Regards,
>>                              JP
>>
>>                              [@@ OPEN @@]
>>
>>                              -----Message d'origine-----
>>                              De : Jean-Baptiste Onofré
>>                              [mailto:jb@nanthrax.net
>>                              <ma...@nanthrax.net>] Envoyé : jeudi
>>                              5 décembre 2013 14:22 À :
>>                              user@karaf.apache.org
>>                              <ma...@karaf.apache.org> Objet : Re: Karaf
>>                              &
>>                              Java8
>>
>>                              It depends if we need an ASM update or not.
>>
>>                              Let me take a quick look on that, I will get
>>                              back to you (at least in the Jira).
>>
>>                              Regards
>>                              JB
>>
>>                              On 12/05/2013 02:14 PM, CLEMENT
>>                              Jean-Philippe wrote:
>>
>>                                  Ok, well... from your experience, when
>>                                  could I expect a Java8 compliant version
>>                                  of Karaf?
>>
>>                                  JP
>>
>>                                  -----Message d'origine-----
>>                                  De : Jean-Baptiste Onofré
>>                                  [mailto:jb@nanthrax.net
>>                                  <ma...@nanthrax.net>] Envoyé : jeudi
>>                                  5 décembre 2013 13:59 À :
>>                                  user@karaf.apache.org
>>                                  <ma...@karaf.apache.org> Objet :
>>                                  Re: Karaf
>>                                  &
>>                                  Java8
>>
>>                                  Hi Jean-Philippe,
>>
>>                                  not yet, we have to work on ASM for full
>>                                  support.
>>
>>                                  I gonna take a look on that just after
>>                                  Karaf 3.0.0 release.
>>
>>                                  Regards
>>                                  JB
>>
>>                                  On 12/05/2013 01:50 PM, CLEMENT
>>                                  Jean-Philippe wrote:
>>
>>                                      Dear Karaf experts,
>>
>>                                      It seems Karaf 3.0.0 RC1 doesn't
>>                                      work with Java8 (KARAF-2562).
>>                                      Is there a workaround?
>>
>>                                      JP
>>
>>
>>                                  --
>>                                  Jean-Baptiste Onofré
>>                                  jbonofre@apache.org
>>                                  <ma...@apache.org>
>>                                  http://blog.nanthrax.net
>>                                  Talend - http://www.talend.com
>>
>>
>>                              --
>>                              Jean-Baptiste Onofré
>>                              jbonofre@apache.org <ma...@apache.org>
>>                              http://blog.nanthrax.net
>>                              Talend - http://www.talend.com
>>
>>
>>                          --
>>                          Jean-Baptiste Onofré
>>                          jbonofre@apache.org <ma...@apache.org>
>>                          http://blog.nanthrax.net
>>                          Talend - http://www.talend.com
>>
>>
>>                      --
>>                      Jean-Baptiste Onofré
>>                      jbonofre@apache.org <ma...@apache.org>
>>                      http://blog.nanthrax.net
>>                      Talend - http://www.talend.com
>>
>>
>>                  --
>>                  Jean-Baptiste Onofré
>>                  jbonofre@apache.org <ma...@apache.org>
>>                  http://blog.nanthrax.net
>>                  Talend - http://www.talend.com
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>              jbonofre@apache.org <ma...@apache.org>
>>              http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>          --
>>          Jean-Baptiste Onofré
>>          jbonofre@apache.org <ma...@apache.org>
>>          http://blog.nanthrax.net
>>          Talend - http://www.talend.com
>>
>>
>>      --
>>      Jean-Baptiste Onofré
>>      jbonofre@apache.org <ma...@apache.org>
>>      http://blog.nanthrax.net
>>      Talend - http://www.talend.com
>>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Excellent :)

I guess 3.0.1 should be released soon (at least as a RC)?

PS: is Java 8 part of 3.0.1 or 3.1.0?

JP

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : jeudi 27 mars 2014 19:23
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

Hi Charlie,

Yes, 3.0.1 and 4.0.0 will have Java8 support.

Regards
JB

On 03/27/2014 07:17 PM, Charlie Mordant wrote:
> Hi JB, JP,
>
> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice 
> for sharp devs ;).
>
> Regards,
>
>
> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
>     Hi JP,
>
>     it works straight forward for me using ASM 5.0.1. I will rebase my
>     local branch and merge on master.
>
>     Regards
>     JB
>
>
>     On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>
>         Hi JB,
>
>         Some modules which have been compiled with Java 8 fail to start.
>         The problem is I have no clue if it's due to Karaf/Java8 or
>         not... I'm stuck :S
>
>         Did you make any progress?
>
>         JP
>
>         [@@ THALES GROUP INTERNAL @@]
>
>
>         -----Message d'origine-----
>         De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>         <ma...@nanthrax.net>]
>         Envoyé : lundi 24 mars 2014 12:11
>         À : user@karaf.apache.org <ma...@karaf.apache.org>
>         Objet : Re: Karaf & Java8
>
>         Hi JP
>
>         for Karaf itself no, the point is more on the Aries Proxy side.
>
>         I plan to push something about that later today (I'm in the US
>         this week).
>
>         Regards
>         JB
>
>         On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>
>             Hi Jean-Baptiste,
>
>             FYI, ASM has been updated to 5.0.1: " This is a maintenance
>             version which fixes a few important bugs found in the 5.0
>             version ".
>
>             Do you think it will take long to catch up with ASM 5 / Java8?
>
>             JP
>
>             [@@ OPEN @@]
>             -----Message d'origine-----
>             De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>] Envoyé : mercredi
>             19 mars 2014 10:19 À : user@karaf.apache.org
>             <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>
>             Hi JP,
>
>             FYI, I updated the Jira this morning, I will work on ASM5
>             update today.
>
>             Regards
>             JB
>
>             On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>
>                 Hi JB,
>
>                 How may I download the 3.1.0-SNAPSHOT?
>
>                 Regards,
>                 JP
>
>                 [@@ THALES GROUP INTERNAL @@]
>
>                 -----Message d'origine-----
>                 De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>                 <ma...@nanthrax.net>] Envoyé : lundi 17
>                 mars 2014 10:55 À : user@karaf.apache.org
>                 <ma...@karaf.apache.org> Objet : Re: Karaf & 
> Java8
>
>                 Hi JP,
>
>                 Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>                 the update on master (especially the impact on blueprint).
>
>                 Regards
>                 JB
>
>                 On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>
>                     Dear Karaf-ers,
>
>                     ASM 5 is released so it may be used in Karaf to get
>                     Java 8 support:
>
>                     "This version is fully backward compatible with ASM
>                     5.0 BETA (itself binary compatible with the 4.x
>                     versions) and provides full support for the new Java
>                     8 class format features. However, new dynamic checks
>                     have been added in order to make sure that ASM
>                     version numbers (e.g.
>                     Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>                     at runtime by subclasses of the ASM classes (as
>                     documented in the API).
>
>                     Another major difference is that
>                     visitMethodInsn(int,String,__String,String) is now
>                     deprecated, and replaced with
>                     visitMethodInsn(int,String,__String,String,boolean)
>                     -- in order to support invokespecial and
>                     invokestatic on interfaces in Java 8.
>                     Visitors declared with the Opcodes.ASM5 version MUST
>                     use this new
>                     method instead of the deprecated one (old visitors
>                     using the
>                     Opcodes.ASM4 and using the deprecated method will
>                     continue to work).
>                     See chapters 5 and
>                     10 of the User Guide
>                     (http://download.forge.__objectweb.org/asm/asm4-guide.__pdf
>                     <http://download.forge.objectweb.org/asm/asm4-guide.pdf>)
>                     for more details."
>
>                     I'm not familiar with ASM at all, but I would like
>                     to get Java 8
>                     support :)
>
>                     How may I help? Is there already a Karaf 3.1.0 beta
>                     version?
>
>                     Regards,
>                     JP
>
>                     -----Message d'origine-----
>                     De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>                     <ma...@nanthrax.net>] Envoyé : vendredi
>                     13 décembre 2013 17:10 À : user@karaf.apache.org
>                     <ma...@karaf.apache.org> Objet : Re: Karaf &
>                     Java8
>
>                     It's exactly what I suspect about Aries Proxy and ASM.
>
>                     You will have a bunch of feature that won't work.
>
>                     I gonna check the version range.
>
>                     Regards
>                     JB
>
>                     On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>
>                         I found that ASM is installed as any normal
>                         bundle within Karaf. So I installed the v5-beta
>                         with same start level and removed the old one.
>                         For the moment it seems to work with Java 8, the
>                         only thing is that the log is full of "unable to
>                         create a proxy object for ... returning the
>                         original object instead."
>
>                         JP
>
>
>                         -----Message d'origine-----
>                         De : Jean-Baptiste Onofré
>                         [mailto:jb@nanthrax.net
>                         <ma...@nanthrax.net>] Envoyé :
>                         vendredi
>                         13 décembre 2013 10:24 À : user@karaf.apache.org
>                         <ma...@karaf.apache.org> Objet : Re: Karaf
>                         &
>                         Java8
>
>                         Hi JP,
>
>                         as ASM 5 is still beta, we don't upgrade in
>                         Karaf (or after 3.0.0 on trunk).
>
>                         As Aries Proxy also use ASM, I don't think that
>                         Aries tested ASM 5 beta at all. So not sure it
>                         will work "out of the box".
>
>                         Regards
>                         JB
>
>                         On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>
>                             It looks like ASM 5 beta supports Java8
>                             which is great news.
>
>                             Is there a way to patch Karaf?
>
>                             Regards,
>                             JP
>
>                             [@@ OPEN @@]
>
>                             -----Message d'origine-----
>                             De : Jean-Baptiste Onofré
>                             [mailto:jb@nanthrax.net
>                             <ma...@nanthrax.net>] Envoyé : jeudi
>                             5 décembre 2013 14:22 À :
>                             user@karaf.apache.org
>                             <ma...@karaf.apache.org> Objet : Re: Karaf
>                             &
>                             Java8
>
>                             It depends if we need an ASM update or not.
>
>                             Let me take a quick look on that, I will get
>                             back to you (at least in the Jira).
>
>                             Regards
>                             JB
>
>                             On 12/05/2013 02:14 PM, CLEMENT
>                             Jean-Philippe wrote:
>
>                                 Ok, well... from your experience, when
>                                 could I expect a Java8 compliant version
>                                 of Karaf?
>
>                                 JP
>
>                                 -----Message d'origine-----
>                                 De : Jean-Baptiste Onofré
>                                 [mailto:jb@nanthrax.net
>                                 <ma...@nanthrax.net>] Envoyé : jeudi
>                                 5 décembre 2013 13:59 À :
>                                 user@karaf.apache.org
>                                 <ma...@karaf.apache.org> Objet :
>                                 Re: Karaf
>                                 &
>                                 Java8
>
>                                 Hi Jean-Philippe,
>
>                                 not yet, we have to work on ASM for full
>                                 support.
>
>                                 I gonna take a look on that just after
>                                 Karaf 3.0.0 release.
>
>                                 Regards
>                                 JB
>
>                                 On 12/05/2013 01:50 PM, CLEMENT
>                                 Jean-Philippe wrote:
>
>                                     Dear Karaf experts,
>
>                                     It seems Karaf 3.0.0 RC1 doesn't
>                                     work with Java8 (KARAF-2562).
>                                     Is there a workaround?
>
>                                     JP
>
>
>                                 --
>                                 Jean-Baptiste Onofré
>                                 jbonofre@apache.org
>                                 <ma...@apache.org>
>                                 http://blog.nanthrax.net
>                                 Talend - http://www.talend.com
>
>
>                             --
>                             Jean-Baptiste Onofré
>                             jbonofre@apache.org <ma...@apache.org>
>                             http://blog.nanthrax.net
>                             Talend - http://www.talend.com
>
>
>                         --
>                         Jean-Baptiste Onofré
>                         jbonofre@apache.org <ma...@apache.org>
>                         http://blog.nanthrax.net
>                         Talend - http://www.talend.com
>
>
>                     --
>                     Jean-Baptiste Onofré
>                     jbonofre@apache.org <ma...@apache.org>
>                     http://blog.nanthrax.net
>                     Talend - http://www.talend.com
>
>
>                 --
>                 Jean-Baptiste Onofré
>                 jbonofre@apache.org <ma...@apache.org>
>                 http://blog.nanthrax.net
>                 Talend - http://www.talend.com
>
>
>             --
>             Jean-Baptiste Onofré
>             jbonofre@apache.org <ma...@apache.org>
>             http://blog.nanthrax.net
>             Talend - http://www.talend.com
>
>
>         --
>         Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         http://blog.nanthrax.net
>         Talend - http://www.talend.com
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Charlie,

Yes, 3.0.1 and 4.0.0 will have Java8 support.

Regards
JB

On 03/27/2014 07:17 PM, Charlie Mordant wrote:
> Hi JB, JP,
>
> Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice
> for sharp devs ;).
>
> Regards,
>
>
> 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
>     Hi JP,
>
>     it works straight forward for me using ASM 5.0.1. I will rebase my
>     local branch and merge on master.
>
>     Regards
>     JB
>
>
>     On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>
>         Hi JB,
>
>         Some modules which have been compiled with Java 8 fail to start.
>         The problem is I have no clue if it's due to Karaf/Java8 or
>         not... I'm stuck :S
>
>         Did you make any progress?
>
>         JP
>
>         [@@ THALES GROUP INTERNAL @@]
>
>
>         -----Message d'origine-----
>         De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>         <ma...@nanthrax.net>]
>         Envoyé : lundi 24 mars 2014 12:11
>         À : user@karaf.apache.org <ma...@karaf.apache.org>
>         Objet : Re: Karaf & Java8
>
>         Hi JP
>
>         for Karaf itself no, the point is more on the Aries Proxy side.
>
>         I plan to push something about that later today (I'm in the US
>         this week).
>
>         Regards
>         JB
>
>         On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>
>             Hi Jean-Baptiste,
>
>             FYI, ASM has been updated to 5.0.1: " This is a maintenance
>             version which fixes a few important bugs found in the 5.0
>             version ".
>
>             Do you think it will take long to catch up with ASM 5 / Java8?
>
>             JP
>
>             [@@ OPEN @@]
>             -----Message d'origine-----
>             De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>] Envoyé : mercredi
>             19 mars 2014 10:19 À : user@karaf.apache.org
>             <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>
>             Hi JP,
>
>             FYI, I updated the Jira this morning, I will work on ASM5
>             update today.
>
>             Regards
>             JB
>
>             On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>
>                 Hi JB,
>
>                 How may I download the 3.1.0-SNAPSHOT?
>
>                 Regards,
>                 JP
>
>                 [@@ THALES GROUP INTERNAL @@]
>
>                 -----Message d'origine-----
>                 De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>                 <ma...@nanthrax.net>] Envoyé : lundi 17
>                 mars 2014 10:55 À : user@karaf.apache.org
>                 <ma...@karaf.apache.org> Objet : Re: Karaf & Java8
>
>                 Hi JP,
>
>                 Karaf master is 3.1.0-SNAPSHOT. I will take a look on
>                 the update on master (especially the impact on blueprint).
>
>                 Regards
>                 JB
>
>                 On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>
>                     Dear Karaf-ers,
>
>                     ASM 5 is released so it may be used in Karaf to get
>                     Java 8 support:
>
>                     "This version is fully backward compatible with ASM
>                     5.0 BETA (itself binary compatible with the 4.x
>                     versions) and provides full support for the new Java
>                     8 class format features. However, new dynamic checks
>                     have been added in order to make sure that ASM
>                     version numbers (e.g.
>                     Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used
>                     at runtime by subclasses of the ASM classes (as
>                     documented in the API).
>
>                     Another major difference is that
>                     visitMethodInsn(int,String,__String,String) is now
>                     deprecated, and replaced with
>                     visitMethodInsn(int,String,__String,String,boolean)
>                     -- in order to support invokespecial and
>                     invokestatic on interfaces in Java 8.
>                     Visitors declared with the Opcodes.ASM5 version MUST
>                     use this new
>                     method instead of the deprecated one (old visitors
>                     using the
>                     Opcodes.ASM4 and using the deprecated method will
>                     continue to work).
>                     See chapters 5 and
>                     10 of the User Guide
>                     (http://download.forge.__objectweb.org/asm/asm4-guide.__pdf
>                     <http://download.forge.objectweb.org/asm/asm4-guide.pdf>)
>                     for more details."
>
>                     I'm not familiar with ASM at all, but I would like
>                     to get Java 8
>                     support :)
>
>                     How may I help? Is there already a Karaf 3.1.0 beta
>                     version?
>
>                     Regards,
>                     JP
>
>                     -----Message d'origine-----
>                     De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>                     <ma...@nanthrax.net>] Envoyé : vendredi
>                     13 décembre 2013 17:10 À : user@karaf.apache.org
>                     <ma...@karaf.apache.org> Objet : Re: Karaf &
>                     Java8
>
>                     It's exactly what I suspect about Aries Proxy and ASM.
>
>                     You will have a bunch of feature that won't work.
>
>                     I gonna check the version range.
>
>                     Regards
>                     JB
>
>                     On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>
>                         I found that ASM is installed as any normal
>                         bundle within Karaf. So I installed the v5-beta
>                         with same start level and removed the old one.
>                         For the moment it seems to work with Java 8, the
>                         only thing is that the log is full of "unable to
>                         create a proxy object for ... returning the
>                         original object instead."
>
>                         JP
>
>
>                         -----Message d'origine-----
>                         De : Jean-Baptiste Onofré
>                         [mailto:jb@nanthrax.net
>                         <ma...@nanthrax.net>] Envoyé :
>                         vendredi
>                         13 décembre 2013 10:24 À : user@karaf.apache.org
>                         <ma...@karaf.apache.org> Objet : Re: Karaf
>                         &
>                         Java8
>
>                         Hi JP,
>
>                         as ASM 5 is still beta, we don't upgrade in
>                         Karaf (or after 3.0.0 on trunk).
>
>                         As Aries Proxy also use ASM, I don't think that
>                         Aries tested ASM 5 beta at all. So not sure it
>                         will work "out of the box".
>
>                         Regards
>                         JB
>
>                         On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>
>                             It looks like ASM 5 beta supports Java8
>                             which is great news.
>
>                             Is there a way to patch Karaf?
>
>                             Regards,
>                             JP
>
>                             [@@ OPEN @@]
>
>                             -----Message d'origine-----
>                             De : Jean-Baptiste Onofré
>                             [mailto:jb@nanthrax.net
>                             <ma...@nanthrax.net>] Envoyé : jeudi
>                             5 décembre 2013 14:22 À :
>                             user@karaf.apache.org
>                             <ma...@karaf.apache.org> Objet : Re: Karaf
>                             &
>                             Java8
>
>                             It depends if we need an ASM update or not.
>
>                             Let me take a quick look on that, I will get
>                             back to you (at least in the Jira).
>
>                             Regards
>                             JB
>
>                             On 12/05/2013 02:14 PM, CLEMENT
>                             Jean-Philippe wrote:
>
>                                 Ok, well... from your experience, when
>                                 could I expect a Java8 compliant version
>                                 of Karaf?
>
>                                 JP
>
>                                 -----Message d'origine-----
>                                 De : Jean-Baptiste Onofré
>                                 [mailto:jb@nanthrax.net
>                                 <ma...@nanthrax.net>] Envoyé : jeudi
>                                 5 décembre 2013 13:59 À :
>                                 user@karaf.apache.org
>                                 <ma...@karaf.apache.org> Objet :
>                                 Re: Karaf
>                                 &
>                                 Java8
>
>                                 Hi Jean-Philippe,
>
>                                 not yet, we have to work on ASM for full
>                                 support.
>
>                                 I gonna take a look on that just after
>                                 Karaf 3.0.0 release.
>
>                                 Regards
>                                 JB
>
>                                 On 12/05/2013 01:50 PM, CLEMENT
>                                 Jean-Philippe wrote:
>
>                                     Dear Karaf experts,
>
>                                     It seems Karaf 3.0.0 RC1 doesn't
>                                     work with Java8 (KARAF-2562).
>                                     Is there a workaround?
>
>                                     JP
>
>
>                                 --
>                                 Jean-Baptiste Onofré
>                                 jbonofre@apache.org
>                                 <ma...@apache.org>
>                                 http://blog.nanthrax.net
>                                 Talend - http://www.talend.com
>
>
>                             --
>                             Jean-Baptiste Onofré
>                             jbonofre@apache.org <ma...@apache.org>
>                             http://blog.nanthrax.net
>                             Talend - http://www.talend.com
>
>
>                         --
>                         Jean-Baptiste Onofré
>                         jbonofre@apache.org <ma...@apache.org>
>                         http://blog.nanthrax.net
>                         Talend - http://www.talend.com
>
>
>                     --
>                     Jean-Baptiste Onofré
>                     jbonofre@apache.org <ma...@apache.org>
>                     http://blog.nanthrax.net
>                     Talend - http://www.talend.com
>
>
>                 --
>                 Jean-Baptiste Onofré
>                 jbonofre@apache.org <ma...@apache.org>
>                 http://blog.nanthrax.net
>                 Talend - http://www.talend.com
>
>
>             --
>             Jean-Baptiste Onofré
>             jbonofre@apache.org <ma...@apache.org>
>             http://blog.nanthrax.net
>             Talend - http://www.talend.com
>
>
>         --
>         Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         http://blog.nanthrax.net
>         Talend - http://www.talend.com
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Charlie Mordant <cm...@gmail.com>.
Hi JB, JP,

Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice for
sharp devs ;).

Regards,


2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> Hi JP,
>
> it works straight forward for me using ASM 5.0.1. I will rebase my local
> branch and merge on master.
>
> Regards
> JB
>
>
> On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
>
>> Hi JB,
>>
>> Some modules which have been compiled with Java 8 fail to start. The
>> problem is I have no clue if it's due to Karaf/Java8 or not... I'm stuck :S
>>
>> Did you make any progress?
>>
>> JP
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
>> Envoyé : lundi 24 mars 2014 12:11
>> À : user@karaf.apache.org
>> Objet : Re: Karaf & Java8
>>
>> Hi JP
>>
>> for Karaf itself no, the point is more on the Aries Proxy side.
>>
>> I plan to push something about that later today (I'm in the US this week).
>>
>> Regards
>> JB
>>
>> On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>>
>>> Hi Jean-Baptiste,
>>>
>>> FYI, ASM has been updated to 5.0.1: " This is a maintenance version
>>> which fixes a few important bugs found in the 5.0 version ".
>>>
>>> Do you think it will take long to catch up with ASM 5 / Java8?
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : mercredi
>>> 19 mars 2014 10:19 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>>
>>> Hi JP,
>>>
>>> FYI, I updated the Jira this morning, I will work on ASM5 update today.
>>>
>>> Regards
>>> JB
>>>
>>> On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>>
>>>> Hi JB,
>>>>
>>>> How may I download the 3.1.0-SNAPSHOT?
>>>>
>>>> Regards,
>>>> JP
>>>>
>>>> [@@ THALES GROUP INTERNAL @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17
>>>> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>>>
>>>> Hi JP,
>>>>
>>>> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on
>>>> master (especially the impact on blueprint).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>>>
>>>>> Dear Karaf-ers,
>>>>>
>>>>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>>>>
>>>>> "This version is fully backward compatible with ASM 5.0 BETA (itself
>>>>> binary compatible with the 4.x versions) and provides full support for the
>>>>> new Java 8 class format features. However, new dynamic checks have been
>>>>> added in order to make sure that ASM version numbers (e.g.
>>>>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by
>>>>> subclasses of the ASM classes (as documented in the API).
>>>>>
>>>>> Another major difference is that
>>>>> visitMethodInsn(int,String,String,String) is now deprecated, and
>>>>> replaced with visitMethodInsn(int,String,String,String,boolean) -- in
>>>>> order to support invokespecial and invokestatic on interfaces in Java 8.
>>>>> Visitors declared with the Opcodes.ASM5 version MUST use this new
>>>>> method instead of the deprecated one (old visitors using the
>>>>> Opcodes.ASM4 and using the deprecated method will continue to work).
>>>>> See chapters 5 and
>>>>> 10 of the User Guide
>>>>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more
>>>>> details."
>>>>>
>>>>> I'm not familiar with ASM at all, but I would like to get Java 8
>>>>> support :)
>>>>>
>>>>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>>>>
>>>>> Regards,
>>>>> JP
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>>>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>>>>> Java8
>>>>>
>>>>> It's exactly what I suspect about Aries Proxy and ASM.
>>>>>
>>>>> You will have a bunch of feature that won't work.
>>>>>
>>>>> I gonna check the version range.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>>>
>>>>>> I found that ASM is installed as any normal bundle within Karaf. So I
>>>>>> installed the v5-beta with same start level and removed the old one. For
>>>>>> the moment it seems to work with Java 8, the only thing is that the log is
>>>>>> full of "unable to create a proxy object for ... returning the original
>>>>>> object instead."
>>>>>>
>>>>>> JP
>>>>>>
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé :
>>>>>> vendredi
>>>>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf
>>>>>> &
>>>>>> Java8
>>>>>>
>>>>>> Hi JP,
>>>>>>
>>>>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on
>>>>>> trunk).
>>>>>>
>>>>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5
>>>>>> beta at all. So not sure it will work "out of the box".
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>>>>
>>>>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>>>>
>>>>>>> Is there a way to patch Karaf?
>>>>>>>
>>>>>>> Regards,
>>>>>>> JP
>>>>>>>
>>>>>>> [@@ OPEN @@]
>>>>>>>
>>>>>>> -----Message d'origine-----
>>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>>> 5 décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf
>>>>>>> &
>>>>>>> Java8
>>>>>>>
>>>>>>> It depends if we need an ASM update or not.
>>>>>>>
>>>>>>> Let me take a quick look on that, I will get back to you (at least
>>>>>>> in the Jira).
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>>>>
>>>>>>>> Ok, well... from your experience, when could I expect a Java8
>>>>>>>> compliant version of Karaf?
>>>>>>>>
>>>>>>>> JP
>>>>>>>>
>>>>>>>> -----Message d'origine-----
>>>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf
>>>>>>>> &
>>>>>>>> Java8
>>>>>>>>
>>>>>>>> Hi Jean-Philippe,
>>>>>>>>
>>>>>>>> not yet, we have to work on ASM for full support.
>>>>>>>>
>>>>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> JB
>>>>>>>>
>>>>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>>>>
>>>>>>>>> Dear Karaf experts,
>>>>>>>>>
>>>>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562).
>>>>>>>>> Is there a workaround?
>>>>>>>>>
>>>>>>>>> JP
>>>>>>>>>
>>>>>>>>>
>>>>>>>> --
>>>>>>>> Jean-Baptiste Onofré
>>>>>>>> jbonofre@apache.org
>>>>>>>> http://blog.nanthrax.net
>>>>>>>> Talend - http://www.talend.com
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Jean-Baptiste Onofré
>>>>>>> jbonofre@apache.org
>>>>>>> http://blog.nanthrax.net
>>>>>>> Talend - http://www.talend.com
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

it works straight forward for me using ASM 5.0.1. I will rebase my local 
branch and merge on master.

Regards
JB

On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> Some modules which have been compiled with Java 8 fail to start. The problem is I have no clue if it's due to Karaf/Java8 or not... I'm stuck :S
>
> Did you make any progress?
>
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 24 mars 2014 12:11
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi JP
>
> for Karaf itself no, the point is more on the Aries Proxy side.
>
> I plan to push something about that later today (I'm in the US this week).
>
> Regards
> JB
>
> On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
>> Hi Jean-Baptiste,
>>
>> FYI, ASM has been updated to 5.0.1: " This is a maintenance version which fixes a few important bugs found in the 5.0 version ".
>>
>> Do you think it will take long to catch up with ASM 5 / Java8?
>>
>> JP
>>
>> [@@ OPEN @@]
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : mercredi
>> 19 mars 2014 10:19 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>
>> Hi JP,
>>
>> FYI, I updated the Jira this morning, I will work on ASM5 update today.
>>
>> Regards
>> JB
>>
>> On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>>> Hi JB,
>>>
>>> How may I download the 3.1.0-SNAPSHOT?
>>>
>>> Regards,
>>> JP
>>>
>>> [@@ THALES GROUP INTERNAL @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17
>>> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>>
>>> Hi JP,
>>>
>>> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>>>
>>> Regards
>>> JB
>>>
>>> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>>> Dear Karaf-ers,
>>>>
>>>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>>>
>>>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>>>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>>>
>>>> Another major difference is that
>>>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>>>> Visitors declared with the Opcodes.ASM5 version MUST use this new
>>>> method instead of the deprecated one (old visitors using the
>>>> Opcodes.ASM4 and using the deprecated method will continue to work).
>>>> See chapters 5 and
>>>> 10 of the User Guide
>>>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>>>
>>>> I'm not familiar with ASM at all, but I would like to get Java 8
>>>> support :)
>>>>
>>>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>>>
>>>> Regards,
>>>> JP
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> It's exactly what I suspect about Aries Proxy and ASM.
>>>>
>>>> You will have a bunch of feature that won't work.
>>>>
>>>> I gonna check the version range.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>>>
>>>>> JP
>>>>>
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé :
>>>>> vendredi
>>>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf
>>>>> &
>>>>> Java8
>>>>>
>>>>> Hi JP,
>>>>>
>>>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>>>
>>>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>>>
>>>>>> Is there a way to patch Karaf?
>>>>>>
>>>>>> Regards,
>>>>>> JP
>>>>>>
>>>>>> [@@ OPEN @@]
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 5 décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf
>>>>>> &
>>>>>> Java8
>>>>>>
>>>>>> It depends if we need an ASM update or not.
>>>>>>
>>>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>>>
>>>>>>> JP
>>>>>>>
>>>>>>> -----Message d'origine-----
>>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf
>>>>>>> &
>>>>>>> Java8
>>>>>>>
>>>>>>> Hi Jean-Philippe,
>>>>>>>
>>>>>>> not yet, we have to work on ASM for full support.
>>>>>>>
>>>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>>>> Dear Karaf experts,
>>>>>>>>
>>>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562).
>>>>>>>> Is there a workaround?
>>>>>>>>
>>>>>>>> JP
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Jean-Baptiste Onofré
>>>>>>> jbonofre@apache.org
>>>>>>> http://blog.nanthrax.net
>>>>>>> Talend - http://www.talend.com
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
As a desesperate solution I removed built-in ASM and installed the latest one (5.0.1) and... tada!

Everything is just fine. Everything works as expected and I even get no strange logs.

JP

[@@ THALES GROUP INTERNAL @@]


-----Message d'origine-----
De : CLEMENT Jean-Philippe [mailto:jean-philippe.clement@fr.thalesgroup.com] 
Envoyé : jeudi 27 mars 2014 16:45
À : user@karaf.apache.org
Objet : RE: Karaf & Java8

Hi JB,

Some modules which have been compiled with Java 8 fail to start. The problem is I have no clue if it's due to Karaf/Java8 or not... I'm stuck :S

Did you make any progress?

JP

[@@ THALES GROUP INTERNAL @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 24 mars 2014 12:11 À : user@karaf.apache.org Objet : Re: Karaf & Java8

Hi JP

for Karaf itself no, the point is more on the Aries Proxy side.

I plan to push something about that later today (I'm in the US this week).

Regards
JB

On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
> Hi Jean-Baptiste,
>
> FYI, ASM has been updated to 5.0.1: " This is a maintenance version which fixes a few important bugs found in the 5.0 version ".
>
> Do you think it will take long to catch up with ASM 5 / Java8?
>
> JP
>
> [@@ OPEN @@]
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : mercredi
> 19 mars 2014 10:19 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>
> Hi JP,
>
> FYI, I updated the Jira this morning, I will work on ASM5 update today.
>
> Regards
> JB
>
> On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>> Hi JB,
>>
>> How may I download the 3.1.0-SNAPSHOT?
>>
>> Regards,
>> JP
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17 
>> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>
>> Hi JP,
>>
>> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>>
>> Regards
>> JB
>>
>> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>> Dear Karaf-ers,
>>>
>>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>>
>>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>>
>>> Another major difference is that
>>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>>> Visitors declared with the Opcodes.ASM5 version MUST use this new 
>>> method instead of the deprecated one (old visitors using the
>>> Opcodes.ASM4 and using the deprecated method will continue to work).
>>> See chapters 5 and
>>> 10 of the User Guide
>>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>>
>>> I'm not familiar with ASM at all, but I would like to get Java 8 
>>> support :)
>>>
>>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>>
>>> Regards,
>>> JP
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> It's exactly what I suspect about Aries Proxy and ASM.
>>>
>>> You will have a bunch of feature that won't work.
>>>
>>> I gonna check the version range.
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>>
>>>> JP
>>>>
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : 
>>>> vendredi
>>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf 
>>>> &
>>>> Java8
>>>>
>>>> Hi JP,
>>>>
>>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>>
>>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>>
>>>>> Is there a way to patch Karaf?
>>>>>
>>>>> Regards,
>>>>> JP
>>>>>
>>>>> [@@ OPEN @@]
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 5 décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>> &
>>>>> Java8
>>>>>
>>>>> It depends if we need an ASM update or not.
>>>>>
>>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>>> &
>>>>>> Java8
>>>>>>
>>>>>> Hi Jean-Philippe,
>>>>>>
>>>>>> not yet, we have to work on ASM for full support.
>>>>>>
>>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>>> Dear Karaf experts,
>>>>>>>
>>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). 
>>>>>>> Is there a workaround?
>>>>>>>
>>>>>>> JP
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi JB,

Some modules which have been compiled with Java 8 fail to start. The problem is I have no clue if it's due to Karaf/Java8 or not... I'm stuck :S

Did you make any progress?

JP

[@@ THALES GROUP INTERNAL @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : lundi 24 mars 2014 12:11
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

Hi JP

for Karaf itself no, the point is more on the Aries Proxy side.

I plan to push something about that later today (I'm in the US this week).

Regards
JB

On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
> Hi Jean-Baptiste,
>
> FYI, ASM has been updated to 5.0.1: " This is a maintenance version which fixes a few important bugs found in the 5.0 version ".
>
> Do you think it will take long to catch up with ASM 5 / Java8?
>
> JP
>
> [@@ OPEN @@]
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : mercredi 
> 19 mars 2014 10:19 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>
> Hi JP,
>
> FYI, I updated the Jira this morning, I will work on ASM5 update today.
>
> Regards
> JB
>
> On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>> Hi JB,
>>
>> How may I download the 3.1.0-SNAPSHOT?
>>
>> Regards,
>> JP
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17 
>> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>
>> Hi JP,
>>
>> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>>
>> Regards
>> JB
>>
>> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>> Dear Karaf-ers,
>>>
>>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>>
>>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>>
>>> Another major difference is that
>>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>>> Visitors declared with the Opcodes.ASM5 version MUST use this new 
>>> method instead of the deprecated one (old visitors using the
>>> Opcodes.ASM4 and using the deprecated method will continue to work).
>>> See chapters 5 and
>>> 10 of the User Guide
>>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>>
>>> I'm not familiar with ASM at all, but I would like to get Java 8 
>>> support :)
>>>
>>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>>
>>> Regards,
>>> JP
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> It's exactly what I suspect about Aries Proxy and ASM.
>>>
>>> You will have a bunch of feature that won't work.
>>>
>>> I gonna check the version range.
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>>
>>>> JP
>>>>
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : 
>>>> vendredi
>>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf 
>>>> &
>>>> Java8
>>>>
>>>> Hi JP,
>>>>
>>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>>
>>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>>
>>>>> Is there a way to patch Karaf?
>>>>>
>>>>> Regards,
>>>>> JP
>>>>>
>>>>> [@@ OPEN @@]
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 
>>>>> 5 décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>> &
>>>>> Java8
>>>>>
>>>>> It depends if we need an ASM update or not.
>>>>>
>>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>>> &
>>>>>> Java8
>>>>>>
>>>>>> Hi Jean-Philippe,
>>>>>>
>>>>>> not yet, we have to work on ASM for full support.
>>>>>>
>>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>>> Dear Karaf experts,
>>>>>>>
>>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). 
>>>>>>> Is there a workaround?
>>>>>>>
>>>>>>> JP
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP

for Karaf itself no, the point is more on the Aries Proxy side.

I plan to push something about that later today (I'm in the US this week).

Regards
JB

On 03/24/2014 12:08 PM, CLEMENT Jean-Philippe wrote:
> Hi Jean-Baptiste,
>
> FYI, ASM has been updated to 5.0.1: " This is a maintenance version which fixes a few important bugs found in the 5.0 version ".
>
> Do you think it will take long to catch up with ASM 5 / Java8?
>
> JP
>
> [@@ OPEN @@]
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mercredi 19 mars 2014 10:19
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi JP,
>
> FYI, I updated the Jira this morning, I will work on ASM5 update today.
>
> Regards
> JB
>
> On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
>> Hi JB,
>>
>> How may I download the 3.1.0-SNAPSHOT?
>>
>> Regards,
>> JP
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17
>> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>>
>> Hi JP,
>>
>> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>>
>> Regards
>> JB
>>
>> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>>> Dear Karaf-ers,
>>>
>>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>>
>>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>>
>>> Another major difference is that
>>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>>> Visitors declared with the Opcodes.ASM5 version MUST use this new
>>> method instead of the deprecated one (old visitors using the
>>> Opcodes.ASM4 and using the deprecated method will continue to work).
>>> See chapters 5 and
>>> 10 of the User Guide
>>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>>
>>> I'm not familiar with ASM at all, but I would like to get Java 8
>>> support :)
>>>
>>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>>
>>> Regards,
>>> JP
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> It's exactly what I suspect about Aries Proxy and ASM.
>>>
>>> You will have a bunch of feature that won't work.
>>>
>>> I gonna check the version range.
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>>
>>>> JP
>>>>
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> Hi JP,
>>>>
>>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>>
>>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>>
>>>>> Is there a way to patch Karaf?
>>>>>
>>>>> Regards,
>>>>> JP
>>>>>
>>>>> [@@ OPEN @@]
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
>>>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>>>> Java8
>>>>>
>>>>> It depends if we need an ASM update or not.
>>>>>
>>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf
>>>>>> &
>>>>>> Java8
>>>>>>
>>>>>> Hi Jean-Philippe,
>>>>>>
>>>>>> not yet, we have to work on ASM for full support.
>>>>>>
>>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>>> Dear Karaf experts,
>>>>>>>
>>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
>>>>>>> there a workaround?
>>>>>>>
>>>>>>> JP
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi Jean-Baptiste,

FYI, ASM has been updated to 5.0.1: " This is a maintenance version which fixes a few important bugs found in the 5.0 version ".

Do you think it will take long to catch up with ASM 5 / Java8?

JP

[@@ OPEN @@]
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : mercredi 19 mars 2014 10:19
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

Hi JP,

FYI, I updated the Jira this morning, I will work on ASM5 update today.

Regards
JB

On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17 
> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>
> Hi JP,
>
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>
> Regards
> JB
>
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>
>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>
>> Another major difference is that
>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>> Visitors declared with the Opcodes.ASM5 version MUST use this new 
>> method instead of the deprecated one (old visitors using the
>> Opcodes.ASM4 and using the deprecated method will continue to work).
>> See chapters 5 and
>> 10 of the User Guide
>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>
>> I'm not familiar with ASM at all, but I would like to get Java 8 
>> support :)
>>
>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>
>> Regards,
>> JP
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> It's exactly what I suspect about Aries Proxy and ASM.
>>
>> You will have a bunch of feature that won't work.
>>
>> I gonna check the version range.
>>
>> Regards
>> JB
>>
>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>
>>> JP
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> Hi JP,
>>>
>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>
>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>
>>>> Is there a way to patch Karaf?
>>>>
>>>> Regards,
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> It depends if we need an ASM update or not.
>>>>
>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>
>>>>> JP
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 
>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>> &
>>>>> Java8
>>>>>
>>>>> Hi Jean-Philippe,
>>>>>
>>>>> not yet, we have to work on ASM for full support.
>>>>>
>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Dear Karaf experts,
>>>>>>
>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is 
>>>>>> there a workaround?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Still blocked on this point... any idea why?

PS: javafx classes are included in the JDK in the Java 8 version

JP

-----Message d'origine-----
De : CLEMENT Jean-Philippe [mailto:jean-philippe.clement@fr.thalesgroup.com] 
Envoyé : mercredi 19 mars 2014 15:37
À : user@karaf.apache.org
Objet : RE: Karaf & Java8

Did try Karaf 3.1.0-SNAPSHOT but it seems the javafx classes not to be found:
	java.lang.ClassNotFoundException: javafx.application.Application

I added the javafx packages in the jre.properties, the same way I did for Karaf 3.0.0 (which works).

Any idea what's wrong?

Regards,
JP

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : mercredi 19 mars 2014 10:19 À : user@karaf.apache.org Objet : Re: Karaf & Java8

Hi JP,

FYI, I updated the Jira this morning, I will work on ASM5 update today.

Regards
JB

On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17 
> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>
> Hi JP,
>
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>
> Regards
> JB
>
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>
>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>
>> Another major difference is that
>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>> Visitors declared with the Opcodes.ASM5 version MUST use this new 
>> method instead of the deprecated one (old visitors using the
>> Opcodes.ASM4 and using the deprecated method will continue to work).
>> See chapters 5 and
>> 10 of the User Guide
>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>
>> I'm not familiar with ASM at all, but I would like to get Java 8 
>> support :)
>>
>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>
>> Regards,
>> JP
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> It's exactly what I suspect about Aries Proxy and ASM.
>>
>> You will have a bunch of feature that won't work.
>>
>> I gonna check the version range.
>>
>> Regards
>> JB
>>
>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>
>>> JP
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> Hi JP,
>>>
>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>
>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>
>>>> Is there a way to patch Karaf?
>>>>
>>>> Regards,
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> It depends if we need an ASM update or not.
>>>>
>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>
>>>>> JP
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>> &
>>>>> Java8
>>>>>
>>>>> Hi Jean-Philippe,
>>>>>
>>>>> not yet, we have to work on ASM for full support.
>>>>>
>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Dear Karaf experts,
>>>>>>
>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is 
>>>>>> there a workaround?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Did try Karaf 3.1.0-SNAPSHOT but it seems the javafx classes not to be found:
	java.lang.ClassNotFoundException: javafx.application.Application

I added the javafx packages in the jre.properties, the same way I did for Karaf 3.0.0 (which works).

Any idea what's wrong?

Regards,
JP

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : mercredi 19 mars 2014 10:19
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

Hi JP,

FYI, I updated the Jira this morning, I will work on ASM5 update today.

Regards
JB

On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 17 
> mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf & Java8
>
> Hi JP,
>
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>
> Regards
> JB
>
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>
>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>
>> Another major difference is that
>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>> Visitors declared with the Opcodes.ASM5 version MUST use this new 
>> method instead of the deprecated one (old visitors using the
>> Opcodes.ASM4 and using the deprecated method will continue to work).
>> See chapters 5 and
>> 10 of the User Guide
>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>
>> I'm not familiar with ASM at all, but I would like to get Java 8 
>> support :)
>>
>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>
>> Regards,
>> JP
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> It's exactly what I suspect about Aries Proxy and ASM.
>>
>> You will have a bunch of feature that won't work.
>>
>> I gonna check the version range.
>>
>> Regards
>> JB
>>
>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>
>>> JP
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> Hi JP,
>>>
>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>
>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>
>>>> Is there a way to patch Karaf?
>>>>
>>>> Regards,
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> It depends if we need an ASM update or not.
>>>>
>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>
>>>>> JP
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 
>>>>> 5 décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf 
>>>>> &
>>>>> Java8
>>>>>
>>>>> Hi Jean-Philippe,
>>>>>
>>>>> not yet, we have to work on ASM for full support.
>>>>>
>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Dear Karaf experts,
>>>>>>
>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is 
>>>>>> there a workaround?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

FYI, I updated the Jira this morning, I will work on ASM5 update today.

Regards
JB

On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 17 mars 2014 10:55
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> Hi JP,
>
> Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).
>
> Regards
> JB
>
> On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>>
>> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
>> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>>
>> Another major difference is that
>> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
>> Visitors declared with the Opcodes.ASM5 version MUST use this new
>> method instead of the deprecated one (old visitors using the
>> Opcodes.ASM4 and using the deprecated method will continue to work).
>> See chapters 5 and
>> 10 of the User Guide
>> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>>
>> I'm not familiar with ASM at all, but I would like to get Java 8
>> support :)
>>
>> How may I help? Is there already a Karaf 3.1.0 beta version?
>>
>> Regards,
>> JP
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> It's exactly what I suspect about Aries Proxy and ASM.
>>
>> You will have a bunch of feature that won't work.
>>
>> I gonna check the version range.
>>
>> Regards
>> JB
>>
>> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>>
>>> JP
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> Hi JP,
>>>
>>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>>
>>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>>
>>> Regards
>>> JB
>>>
>>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>>
>>>> Is there a way to patch Karaf?
>>>>
>>>> Regards,
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
>>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> It depends if we need an ASM update or not.
>>>>
>>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>>
>>>>> JP
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
>>>>> décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf &
>>>>> Java8
>>>>>
>>>>> Hi Jean-Philippe,
>>>>>
>>>>> not yet, we have to work on ASM for full support.
>>>>>
>>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Dear Karaf experts,
>>>>>>
>>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
>>>>>> there a workaround?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Karaf & Java8

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi JB,

How may I download the 3.1.0-SNAPSHOT?

Regards,
JP

[@@ THALES GROUP INTERNAL @@]

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : lundi 17 mars 2014 10:55
À : user@karaf.apache.org
Objet : Re: Karaf & Java8

Hi JP,

Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on master (especially the impact on blueprint).

Regards
JB

On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf-ers,
>
> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>
> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>
> Another major difference is that
> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
> Visitors declared with the Opcodes.ASM5 version MUST use this new 
> method instead of the deprecated one (old visitors using the 
> Opcodes.ASM4 and using the deprecated method will continue to work). 
> See chapters 5 and
> 10 of the User Guide
> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>
> I'm not familiar with ASM at all, but I would like to get Java 8 
> support :)
>
> How may I help? Is there already a Karaf 3.1.0 beta version?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi 
> 13 décembre 2013 17:10 À : user@karaf.apache.org Objet : Re: Karaf & 
> Java8
>
> It's exactly what I suspect about Aries Proxy and ASM.
>
> You will have a bunch of feature that won't work.
>
> I gonna check the version range.
>
> Regards
> JB
>
> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>
>> JP
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> Hi JP,
>>
>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>
>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>
>> Regards
>> JB
>>
>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>
>>> Is there a way to patch Karaf?
>>>
>>> Regards,
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> It depends if we need an ASM update or not.
>>>
>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>
>>> Regards
>>> JB
>>>
>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>
>>>> JP
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5 
>>>> décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> Hi Jean-Philippe,
>>>>
>>>> not yet, we have to work on ASM for full support.
>>>>
>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>> Dear Karaf experts,
>>>>>
>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is 
>>>>> there a workaround?
>>>>>
>>>>> JP
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf & Java8

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on 
master (especially the impact on blueprint).

Regards
JB

On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf-ers,
>
> ASM 5 is released so it may be used in Karaf to get Java 8 support:
>
> "This version is fully backward compatible with ASM 5.0 BETA (itself binary compatible with the 4.x versions) and provides full support for the new Java 8 class format features. However, new dynamic checks have been added in order to make sure that ASM version numbers (e.g.
> Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by subclasses of the ASM classes (as documented in the API).
>
> Another major difference is that
> visitMethodInsn(int,String,String,String) is now deprecated, and replaced with visitMethodInsn(int,String,String,String,boolean) -- in order to support invokespecial and invokestatic on interfaces in Java 8.
> Visitors declared with the Opcodes.ASM5 version MUST use this new method instead of the deprecated one (old visitors using the Opcodes.ASM4 and using the deprecated method will continue to work). See chapters 5 and
> 10 of the User Guide
> (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more details."
>
> I'm not familiar with ASM at all, but I would like to get Java 8 support :)
>
> How may I help? Is there already a Karaf 3.1.0 beta version?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : vendredi 13 décembre 2013 17:10
> À : user@karaf.apache.org
> Objet : Re: Karaf & Java8
>
> It's exactly what I suspect about Aries Proxy and ASM.
>
> You will have a bunch of feature that won't work.
>
> I gonna check the version range.
>
> Regards
> JB
>
> On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote:
>> I found that ASM is installed as any normal bundle within Karaf. So I installed the v5-beta with same start level and removed the old one. For the moment it seems to work with Java 8, the only thing is that the log is full of "unable to create a proxy object for ... returning the original object instead."
>>
>> JP
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : vendredi
>> 13 décembre 2013 10:24 À : user@karaf.apache.org Objet : Re: Karaf &
>> Java8
>>
>> Hi JP,
>>
>> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 on trunk).
>>
>> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 beta at all. So not sure it will work "out of the box".
>>
>> Regards
>> JB
>>
>> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote:
>>> It looks like ASM 5 beta supports Java8 which is great news.
>>>
>>> Is there a way to patch Karaf?
>>>
>>> Regards,
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
>>> décembre 2013 14:22 À : user@karaf.apache.org Objet : Re: Karaf &
>>> Java8
>>>
>>> It depends if we need an ASM update or not.
>>>
>>> Let me take a quick look on that, I will get back to you (at least in the Jira).
>>>
>>> Regards
>>> JB
>>>
>>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote:
>>>> Ok, well... from your experience, when could I expect a Java8 compliant version of Karaf?
>>>>
>>>> JP
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 5
>>>> décembre 2013 13:59 À : user@karaf.apache.org Objet : Re: Karaf &
>>>> Java8
>>>>
>>>> Hi Jean-Philippe,
>>>>
>>>> not yet, we have to work on ASM for full support.
>>>>
>>>> I gonna take a look on that just after Karaf 3.0.0 release.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote:
>>>>> Dear Karaf experts,
>>>>>
>>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). Is
>>>>> there a workaround?
>>>>>
>>>>> JP
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com