[cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
Werner Keil
werner.keil at gmail.com
Fri Jan 20 07:53:16 EST 2017
Actually it doesn't in many cases.
We started compiling the JSR 363 API and RI with J6 for support of the
largest possible number of runtimes, but Java ME 8 Embedded / CLDC 8 (based
on Java SE 7, not 8) would not accept those JARs either.
Once we built it with JDK 7 and J7 compatible settings, it worked.
Werner
On Fri, Jan 20, 2017 at 11:19 AM, <cdi-dev-request at lists.jboss.org> wrote:
> Send cdi-dev mailing list submissions to
> cdi-dev at lists.jboss.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> or, via email, send a message with subject or body 'help' to
> cdi-dev-request at lists.jboss.org
>
> You can reach the person managing the list at
> cdi-dev-owner at lists.jboss.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cdi-dev digest..."
>
>
> Today's Topics:
>
> 1. Re: DeltaSpike not compiling with CDI 2.0/Weld 3 (John Ament)
> 2. Re: DeltaSpike not compiling with CDI 2.0/Weld 3 (Matej Novotny)
> 3. Re: DeltaSpike not compiling with CDI 2.0/Weld 3 (Matej Novotny)
> 4. Re: DeltaSpike not compiling with CDI 2.0/Weld 3
> (Romain Manni-Bucau)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 20 Jan 2017 10:00:48 +0000
> From: John Ament <john.ament at spartasystems.com>
> Subject: Re: [cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
> To: cdi-dev <cdi-dev at lists.jboss.org>
> Message-ID:
> <CY4PR04MB04861BB7D244E4A22DE644DF98710 at CY4PR04MB0486.
> namprd04.prod.outlook.com>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Actually I just double checked, as I thought I asked this already
>
>
> https://github.com/cdi-spec/cdi/pull/330#issuecomment-259986093
>
>
> So I dug a bit more. It seems that whatever was released as "2.0.Beta1"
> doesn't include the default methods. I'm not sure why but the tag wasn't
> pushed up to the repo either, so its hard to tell.
>
>
> John
>
>
> ________________________________
> From: cdi-dev-bounces at lists.jboss.org <cdi-dev-bounces at lists.jboss.org>
> on behalf of John Ament <john.ament at spartasystems.com>
> Sent: Friday, January 20, 2017 4:50 AM
> To: cdi-dev
> 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.
> ________________________________
> 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.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/
> 20170120/8e3a0698/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Fri, 20 Jan 2017 05:01:07 -0500 (EST)
> From: Matej Novotny <manovotn at redhat.com>
> Subject: Re: [cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
> To: John Ament <john.ament at spartasystems.com>
> Cc: cdi-dev <cdi-dev at lists.jboss.org>
> Message-ID:
> <584082592.14483061.1484906467122.JavaMail.zimbra at redhat.com>
> Content-Type: text/plain; charset=utf-8
>
> 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.
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 20 Jan 2017 05:04:02 -0500 (EST)
> From: Matej Novotny <manovotn at redhat.com>
> Subject: Re: [cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
> To: John Ament <john.ament at spartasystems.com>
> Cc: cdi-dev <cdi-dev at lists.jboss.org>
> Message-ID:
> <965490869.14483507.1484906642515.JavaMail.zimbra at redhat.com>
> Content-Type: text/plain; charset=utf-8
>
> 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.
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 20 Jan 2017 11:18:59 +0100
> From: Romain Manni-Bucau <rmannibucau at gmail.com>
> Subject: Re: [cdi-dev] DeltaSpike not compiling with CDI 2.0/Weld 3
> To: Matej Novotny <manovotn at redhat.com>
> Cc: cdi-dev at lists.jboss.org
> Message-ID:
> <CACLE=7OE8qmL5gdjhH_+HGTy93ziqSqACQM9xCLaryXzL+
> qgYw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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.html
>
> ------------------------------
>
> _______________________________________________
> 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.
>
> End of cdi-dev Digest, Vol 74, Issue 10
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20170120/0a8551cb/attachment-0001.html
More information about the cdi-dev
mailing list