<HTML><BODY>Thank you again. I opened an issue <a href="https://issues.jboss.org/browse/WELD-2493">https://issues.jboss.org/browse/WELD-2493</a>&nbsp;<br><br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Среда,  9 мая 2018, 15:38 +03:00 от Matej Novotny &lt;manovotn@redhat.com&gt;:<br>
        <br>
        <div id="">






<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
         <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_15258695140000000392_BODY">Comments inline<br>
<br>
Matej<br>
<br>
----- Original Message -----<br>
&gt; From: "Alex Sviridov" &lt;<a href="mailto:ooo_saturn7@mail.ru">ooo_saturn7@mail.ru</a>&gt;<br>
&gt; To: "Matej Novotny" &lt;<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>&gt;, "weld-dev" &lt;<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>&gt;<br>
&gt; Sent: Wednesday, May 9, 2018 2:09:56 PM<br>
&gt; Subject: Re[2]: [weld-dev] Weld and JPMS<br>
&gt; <br>
&gt; Hi Matej,<br>
&gt; <br>
&gt; Thank you for such a detailed answer. If I understand you right Weld in not<br>
&gt; modular according to JPMS specs.<br>
&gt; If so, then are there any plans (opened issues) to make it modular?<br>
<br>
There are no opened issues at the moment, feel free to create one, however I cannot guarantee you any time-bound implementation.<br>
Weld is (as as a reference implementation of CDI) mainly looking at EE and there we need to see how EE-world deals with the burden that is called JPMS.<br>
When it comes to SE, the problem is we will need to come up with something that, in the same time, won't break EE behaviour (SE is re-using same core as is in EE and so forth).<br>
<br>
&gt; <br>
&gt; Besides, one question is very interesting for me - will Weld create separate<br>
&gt; container for every JPMS module<br>
&gt; or Weld will create one container for all JPMS modules?<br>
<br>
Not sure I understand you correctly, but I see no benefit in running parallel Weld containers?<br>
Weld will have to behave as it did until now (backward compatibility), which effectively means one container for all JPMS modules in that deployment.<br>
<br>
&gt; <br>
&gt; Best regards, Alex<br>
&gt; <br>
&gt; &gt;Среда,  9 мая 2018, 14:54 +03:00 от Matej Novotny &lt;<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt;Hi Alex,<br>
&gt; &gt;<br>
&gt; &gt;in short, there is no official documentation on that because Weld runs in<br>
&gt; &gt;"classpath mode".<br>
&gt; &gt;<br>
&gt; &gt;JDK 9  and 10 are short-termed releases and will have no special support.<br>
&gt; &gt;JDK 11 is something we should be looking at and we are doing that (lately we<br>
&gt; &gt;added support to avoid illegal access there for instance).<br>
&gt; &gt;<br>
&gt; &gt;When it comes to JPMS itself, the question is, in what environment are you<br>
&gt; &gt;running?<br>
&gt; &gt;If it's EE (e.g. in a server like WildFly), then all magic needs to be<br>
&gt; &gt;worked on server side, pretty much.<br>
&gt; &gt;I know WildFly already has some of it, but I am pretty sure at this point<br>
&gt; &gt;most servers won't fully support JPMS.<br>
&gt; &gt;<br>
&gt; &gt;If in SE, then Weld itself is not defined as JPMS module and hence will end<br>
&gt; &gt;up in an unnamed module (Weld has no module-info).<br>
&gt; &gt;There is no way we can avoid deep reflection on your classes (for instance<br>
&gt; &gt;to be able to intercept non-public methods), therefore you need to make<br>
&gt; &gt;sure your classes<br>
&gt; &gt;allow us to do that (or rather to unnamed module where Weld resides ATM).<br>
&gt; &gt;Having done that, it should work.<br>
&gt; &gt;<br>
&gt; &gt;Matej<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;----- Original Message -----<br>
&gt; &gt;&gt; From: "Alex Sviridov" &lt; <a href="mailto:ooo_saturn7@mail.ru">ooo_saturn7@mail.ru</a> &gt;<br>
&gt; &gt;&gt; To: "weld-dev" &lt; <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a> &gt;<br>
&gt; &gt;&gt; Sent: Tuesday, May 8, 2018 9:51:38 AM<br>
&gt; &gt;&gt; Subject: [weld-dev] Weld and JPMS<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; Hi all<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; Half a year has passed since Java 9 release. Can anyone say if there are<br>
&gt; &gt;&gt; any<br>
&gt; &gt;&gt; documentation,<br>
&gt; &gt;&gt; solutions etc how to work with JPMS in Weld?<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Alex Sviridov<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; weld-dev mailing list<br>
&gt; &gt;&gt;  <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
&gt; &gt;&gt;  <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
&gt; <br>
&gt; <br>
&gt; --<br>
&gt; Alex Sviridov<br>
&gt; <br>
</div>
            
        
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br>
<br>-- <br>Alex Sviridov<br></BODY></HTML>