[jboss-jira] [JBoss JIRA] (AS7-2233) JPA ClassTransformers are ignored

Jason Greene (Updated) (JIRA) jira-events at lists.jboss.org
Fri Nov 4 14:10:22 EDT 2011


     [ https://issues.jboss.org/browse/AS7-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Greene updated AS7-2233:
------------------------------

    Fix Version/s: 7.1.0.CR1
                       (was: 7.1.0.Beta1)


Moving all non-critical issues to the CR. If you finish it before we release beta please correct the fix-for version.

Thanks
                
> JPA ClassTransformers are ignored
> ---------------------------------
>
>                 Key: AS7-2233
>                 URL: https://issues.jboss.org/browse/AS7-2233
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 7.1.0.Beta1
>            Reporter: Antti Laisi
>            Assignee: Scott Marlow
>              Labels: jpa
>             Fix For: 7.1.0.CR1
>
>
> JPA 2 spec states (persistence-2_0-final-spec.pdf chapter 9.5.1):
> javax.persistence.spi.ClassTransformer.transform:
> "A persistence provider supplies an instance of this interface to the PersistenceUnitInfo.addTransformer method. The supplied transformer instance will get called to transform entity class files when they are loaded or redefined. The transformation occurs before the class is defined by the JVM."
> AS7 JPA service doesn't currently implement this as org.jboss.as.jpa.config.PersistenceUnitMetadataImpl.addTransformer doesn't install the transformer. Installing the transformer to the classloader should be immediate when this method is called as the only way a persistence provider can access PersistenceUnitInfo is from inside PersistenceProvider.createContainerEntityManagerFactory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list