<div dir="ltr">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&#39;t have time to do something or expect having Java EE spec do the required stuff :-(.<div>Now that JDK9 is out, if we want EE4J 9 (or whatever it&#39;s version will be) to support jigsaw, we&#39;ll probably have to change packages names :-(.<br><div><br></div><div><br></div><div>Antoine</div><div><br></div><div>[1] <a href="http://mail.openjdk.java.net/pipermail/jigsaw-dev/2016-July/008779.html">http://mail.openjdk.java.net/pipermail/jigsaw-dev/2016-July/008779.html</a></div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 23, 2017 at 9:51 AM Martin Kouba &lt;<a href="mailto:mkouba@redhat.com" target="_blank">mkouba@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For the record, the CDI API itself does not define a dependency on<br>
javax.annotation at all.<br>
<br>
In fact, I&#39;m wondering why @Priority is not part of JDK?? I suppose the<br>
reasons are similar to why javax.annotation.Priority only has<br>
@Target({TYPE,PARAMETER}) (even if we tried to push other element types :-(.<br>
<br>
M<br>
<br>
Dne 21.10.2017 v 16:22 John Ament napsal(a):<br>
&gt; Hey all<br>
&gt;<br>
&gt;<br>
&gt; Not sure where else to turn 😊<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m trying to start testing my apps on Java 9, I believe Java 9 kicks<br>
&gt; back the javax.annotation dependency that CDI declares due to a package<br>
&gt; collision with the built in JDK&#39;s javax.annotation package<br>
&gt; &lt;<a href="https://docs.oracle.com/javase/9/docs/api/javax/annotation/package-summary.html" rel="noreferrer" target="_blank">https://docs.oracle.com/javase/9/docs/api/javax/annotation/package-summary.html</a>&gt;.<br>
&gt; The errors I get are due to missing javax/annotation/Priority.  I&#39;m<br>
&gt; wondering if anyone else has tried this, and if there&#39;s a clean work around?<br>
&gt;<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; NOTICE: This e-mail message and any attachments may contain<br>
&gt; confidential, proprietary, and/or privileged information which should be<br>
&gt; treated accordingly. If you are not the intended recipient, please<br>
&gt; notify the sender immediately by return e-mail, delete this message, and<br>
&gt; destroy all physical and electronic copies. Thank you.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;<br>
&gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" rel="noreferrer" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
&gt;<br>
<br>
--<br>
Martin Kouba<br>
Senior Software Engineer<br>
Red Hat, Czech Republic<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" rel="noreferrer" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.</blockquote></div></div></div></div>