<div dir="ltr">Ah, got it. Makes sense then.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 11:55 AM, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:stuart.w.douglas@gmail.com" target="_blank">stuart.w.douglas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><span class=""><div dir="ltr">On Fri, 12 Feb 2016 at 06:42 James Perkins &lt;<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@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"><div dir="ltr">I don&#39;t recall the previous discussion, but is there a reason we couldn&#39;t just use a JBoss module with a different slot?</div></blockquote><div><br></div></span><div>Nah, the issue is that these classes need to be referenced by the deployment and hibernate, so whatever version hibernate uses has to be the one exposed to the deployment.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Stuart<br></div></font></span><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 8:03 AM, Scott Marlow <span dir="ltr">&lt;<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As previously discussed, Hibernate applications need access to the<br>
Javassist runtime classes (see example [1] enhanced application entity<br>
if you didn&#39;t know this :).  A proposal was discussed on the<br>
hibernate-dev mailing list that I think is the best short term solution.<br>
  I wanted to raise this issue here also, as I would like to later<br>
create a pull request to bring in a new Hibernate ORM that includes this<br>
change.  So, getting early feedback before we create JIRAs for the work,<br>
is important.<br>
<br>
The proposal is to private package (or shade), the Javassist classes, so<br>
that Hibernate ORM has its own copy of the Javassist classes.  On<br>
WildFly, we still would include Javassist for the other components that<br>
use it and for Hibernate applications that have &quot;build-time enhanced<br>
entity classes&quot; by an earlier Hibernate release.<br>
<br>
One downside of this change is that Hibernate applications cannot easily<br>
switch to a different version of the Javassist classes.<br>
<br>
Another downside is that applications that depend on an older Hibernate<br>
ORM version that includes &quot;build-time enhanced entity classes&quot;, will<br>
need to be cracked open, to add dependencies on the Javassist module<br>
(since we will stop automatically adding Javassist to JPA application<br>
deployments).<br>
<br>
The advantage of this change, is that Hibernate applications can include<br>
their own version of Javassist.<br>
<br>
This will also have an impact on Hibernate build-time enhancing of<br>
entity classes (e.g. enhanced bytecode will no longer depend on the<br>
public Javassist classes).<br>
<br>
Scott<br>
<br>
[1] <a href="https://gist.github.com/scottmarlow/dc7ebfea654984f84e2e" rel="noreferrer" target="_blank">https://gist.github.com/scottmarlow/dc7ebfea654984f84e2e</a><br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div><div class="gmail_extra">-- <br><div><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></blockquote></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div>