<div dir="ltr">I don't recall the previous discussion, but is there a reason we couldn't just use a JBoss module with a different slot?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 8:03 AM, Scott Marlow <span dir="ltr"><<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>></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'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 "build-time enhanced<br>
entity classes" 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 "build-time enhanced entity classes", 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">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>-- <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>