[
https://issues.jboss.org/browse/WFLY-7367?page=com.atlassian.jira.plugin....
]
Scott Marlow updated WFLY-7367:
-------------------------------
Description:
Ensure that the cached temp classloader reference is cleared at undeploy time, which is
when the org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner#CLASSES_IN_JAR_CACHE are
also cleared.
Javadoc description from
[
http://docs.oracle.com/javaee/7/api/javax/persistence/spi/PersistenceUnit...]
{quote}
ClassLoader getNewTempClassLoader()
Return a new instance of a ClassLoader that the provider may use to temporarily load any
classes, resources, or open URLs. The scope and classpath of this loader is exactly the
same as that of the loader returned by getClassLoader(). None of the classes loaded by
this class loader will be visible to application components. The provider may only use
this ClassLoader within the scope of the
PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo,
java.util.Map) call.
Returns:
temporary ClassLoader with same visibility as current loader
{quote}
was:Ensure that the cached temp classloader reference is cleared at undeploy time, which
is when the org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner#CLASSES_IN_JAR_CACHE
are also cleared.
add per PU cache of the new temp classloader returned from
PersistenceUnitMetadataImpl.getNewTempClassLoader()
--------------------------------------------------------------------------------------------------------------
Key: WFLY-7367
URL:
https://issues.jboss.org/browse/WFLY-7367
Project: WildFly
Issue Type: Enhancement
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
Ensure that the cached temp classloader reference is cleared at undeploy time, which is
when the org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner#CLASSES_IN_JAR_CACHE are
also cleared.
Javadoc description from
[
http://docs.oracle.com/javaee/7/api/javax/persistence/spi/PersistenceUnit...]
{quote}
ClassLoader getNewTempClassLoader()
Return a new instance of a ClassLoader that the provider may use to temporarily load any
classes, resources, or open URLs. The scope and classpath of this loader is exactly the
same as that of the loader returned by getClassLoader(). None of the classes loaded by
this class loader will be visible to application components. The provider may only use
this ClassLoader within the scope of the
PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo,
java.util.Map) call.
Returns:
temporary ClassLoader with same visibility as current loader
{quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)