<div dir="ltr">Hi John,<div><br></div><div>the exact same issue happens with @Nullable which is used by a bunch of libraries (static code analyzis, @AutoValue of guava etc...)</div><div><br></div><div>Best i was able to do was to force all these javax annotation to be load in a classloader which is not the root JVM one but this is a huge regression of java 9 which has no solution and oracle claims it is intended since it is a bad practise to have packages over jars (even if jars are abstracted into a classloader so this is not something which means anything) :(.</div><div><br></div><div>A workaround is to not activate the JVM javax.annotation package and provide all javax.* in the unamed module but this will not last very long since all modules will slowly be named with time.</div><div><br></div><div>Hope it helps a bit even if it doesn&#39;t solve anything.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><span style="font-size:small">Romain Manni-Bucau</span><br><a href="https://twitter.com/rmannibucau" target="_blank">@rmannibucau</a> |  <a href="https://rmannibucau.metawerx.net/" target="_blank">Blog</a> | <a href="http://rmannibucau.wordpress.com" target="_blank">Old Blog</a> | <a href="https://github.com/rmannibucau" target="_blank">Github</a> | <a href="https://www.linkedin.com/in/rmannibucau" target="_blank">LinkedIn</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2017-10-21 16:22 GMT+02:00 John Ament <span dir="ltr">&lt;<a href="mailto:john.ament@spartasystems.com" target="_blank">john.ament@spartasystems.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-936635809749127056divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hey all</p>
<p><br>
</p>
<p>Not sure where else to turn <span>😊</span></p>
<p><span><br>
</span></p>
<p><span>I&#39;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
<a href="https://docs.oracle.com/javase/9/docs/api/javax/annotation/package-summary.html" class="m_-936635809749127056OWAAutoLink" target="_blank">
JDK&#39;s javax.annotation package</a>.  The errors I get are due to missing javax/annotation/Priority.  I&#39;m wondering if anyone else has tried this, and if there&#39;s a clean work around?</span></p>
<p><span><br>
</span></p>
<p><span>John </span></p>
<div id="m_-936635809749127056Signature">
<div id="m_-936635809749127056divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif,Helvetica,EmojiFont,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols">
<p></p>
</div>
</div>
</div>
<hr>
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.
</div>

<br>______________________________<wbr>_________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">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/<wbr>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/<wbr>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></blockquote></div><br></div>