[cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3

Romain Manni-Bucau rmannibucau at gmail.com
Fri Jan 20 05:18:59 EST 2017


Is it still on 2.0? J6 code should still run for backward compatibility.

Le 20 janv. 2017 11:05, "Matej Novotny" <manovotn at redhat.com> a écrit :

> Bad link, sorry, here is a permanent one
> https://lists.apache.org/thread.html/0cb489f620990037c9eaf16400dd06
> de7e5a979f8c78c046ab6ff3c1@%3Cdev.deltaspike.apache.org%3E
>
> ----- Original Message -----
> > From: "Matej Novotny" <manovotn at redhat.com>
> > To: "John Ament" <john.ament at spartasystems.com>
> > Cc: "cdi-dev" <cdi-dev at lists.jboss.org>
> > Sent: Friday, January 20, 2017 11:01:07 AM
> > Subject: Re: [cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
> >
> > Hi John
> >
> > It is a known "issue" which I even sent an email about to DS mailing
> list.
> >
> > The cause is that DS compiles against Java 6 and CDI 2.0 adds a bunch of
> > *default* methods which will then not be recognized.
> > This in the end means that some DS classes (implementing interfaces from
> CDI
> > where such methods were addded) cannot be compiled as implementation
> will be
> > missing.
> >
> > The easiest solution is to compile with --source=1.8 and --target=1.8
> >
> > Here is the link to the email conversation I originally sent -
> > https://lists.apache.org/list.html?dev@deltaspike.apache.org:2016-12
> >
> > Regards
> > Matej
> >
> > ----- Original Message -----
> > > From: "John Ament" <john.ament at spartasystems.com>
> > > To: "cdi-dev" <cdi-dev at lists.jboss.org>
> > > Sent: Friday, January 20, 2017 10:50:45 AM
> > > Subject: [cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
> > >
> > >
> > >
> > > All,
> > >
> > >
> > >
> > >
> > > Just as a heads up, not sure if we knew this or not, but presently
> > > DeltaSpike
> > > does not compile with CDI 2 on the classpath. DS ships with a number of
> > > implementations of Annotated within. Was getAnnotations intended to be
> a
> > > default method?
> > >
> > >
> > >
> > >
> > > John
> > >
> > >
> > >
> > >
> > >
> > >
> > > NOTICE: This e-mail message and any attachments may contain
> confidential,
> > > proprietary, and/or privileged information which should be treated
> > > accordingly. If you are not the intended recipient, please notify the
> > > sender
> > > immediately by return e-mail, delete this message, and destroy all
> physical
> > > and electronic copies. Thank you.
> > >
> > > _______________________________________________
> > > cdi-dev mailing list
> > > cdi-dev at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/cdi-dev
> > >
> > > Note that for all code provided on this list, the provider licenses the
> > > code
> > > under the Apache License, Version 2
> > > (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> > > provided on this list, the provider waives all patent and other
> > > intellectual
> > > property rights inherent in such information.
> > _______________________________________________
> > cdi-dev mailing list
> > cdi-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >
> > Note that for all code provided on this list, the provider licenses the
> code
> > under the Apache License, Version 2
> > (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> > provided on this list, the provider waives all patent and other
> intellectual
> > property rights inherent in such information.
> >
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the
> code under the Apache License, Version 2 (http://www.apache.org/
> licenses/LICENSE-2.0.html). For all other ideas provided on this list,
> the provider waives all patent and other intellectual property rights
> inherent in such information.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20170120/1fc28360/attachment-0001.html 


More information about the cdi-dev mailing list