<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'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's version will be) to support jigsaw, we'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 <<a href="mailto:mkouba@redhat.com" target="_blank">mkouba@redhat.com</a>> 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'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>
> Hey all<br>
><br>
><br>
> Not sure where else to turn 😊<br>
><br>
><br>
> I'm trying to start testing my apps on Java 9, I believe Java 9 kicks<br>
> back the javax.annotation dependency that CDI declares due to a package<br>
> collision with the built in JDK's javax.annotation package<br>
> <<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>>.<br>
> The errors I get are due to missing javax/annotation/Priority. I'm<br>
> wondering if anyone else has tried this, and if there's a clean work around?<br>
><br>
><br>
> John<br>
><br>
> ------------------------------------------------------------------------<br>
> NOTICE: This e-mail message and any attachments may contain<br>
> confidential, proprietary, and/or privileged information which should be<br>
> treated accordingly. If you are not the intended recipient, please<br>
> notify the sender immediately by return e-mail, delete this message, and<br>
> destroy all physical and electronic copies. Thank you.<br>
><br>
><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.<br>
><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>