JAX-B has the same issue. I guess also a lot more 'EE' specs which got merged into SE but didn't get updated in time by the SE team.

LieGrue,
strub


On Monday, 23 October 2017, 10:27:04 GMT+2, Antoine Sabot-Durand <asd@redhat.com> wrote:


I encountered the same type of collision with java.transaction.InvalidTransactionException which is in the JDK and in JTA. I remember sending this problem to jigsaw ML [1], but obviously they didn't have time to do something or expect having Java EE spec do the required stuff :-(.
Now that JDK9 is out, if we want EE4J 9 (or whatever it's version will be) to support jigsaw, we'll probably have to change packages names :-(.


Antoine



On Mon, Oct 23, 2017 at 9:51 AM Martin Kouba <mkouba@redhat.com> wrote:
For the record, the CDI API itself does not define a dependency on
javax.annotation at all.

In fact, I'm wondering why @Priority is not part of JDK?? I suppose the
reasons are similar to why javax.annotation.Priority only has
@Target({TYPE,PARAMETER}) (even if we tried to push other element types :-(.

M

Dne 21.10.2017 v 16:22 John Ament napsal(a):
> Hey all
>
>
> Not sure where else to turn 😊
>
>
> I'm trying to start testing my apps on Java 9, I believe Java 9 kicks
> back the javax.annotation dependency that CDI declares due to a package
> collision with the built in JDK's javax.annotation package
> <https://docs.oracle.com/javase/9/docs/api/javax/annotation/package-summary.html>.
> The errors I get are due to missing javax/annotation/Priority.  I'm
> wondering if anyone else has tried this, and if there's a clean work around?
>
>
> 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@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.
>

--
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic
_______________________________________________
cdi-dev mailing list
cdi-dev@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@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.