[jboss-jira] [JBoss JIRA] (WFLY-11991) Add Hibernate ORM transformer option to transform any method parameter of type org.hibernate.engine.spi.SessionImplementor

Scott Marlow (Jira) issues at jboss.org
Mon Apr 15 11:35:00 EDT 2019


    [ https://issues.jboss.org/browse/WFLY-11991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722538#comment-13722538 ] 

Scott Marlow commented on WFLY-11991:
-------------------------------------

beforechange.zip contains org_jboss_as_test_compat_jpa_hibernate_transformer_StateType.asm which contains the test class that is currently failing.  

Note that the [test StateType internalSessionImplementorUsingMethod|https://github.com/wildfly/wildfly/blob/master/testsuite/compat/src/test/java/org/jboss/as/test/compat/jpa/hibernate/transformer/StateType.java#L56] class method didn't seem to get transformed:
{code}
 private static void internalSessionImplementorUsingMethod(SessionImplementor session) {
        session.isTransactionInProgress();
}
{code}
{quote}
private static internalSessionImplementorUsingMethod(Lorg/hibernate/engine/spi/SessionImplementor;)V
   L0
    LINENUMBER 57 L0
    ALOAD 0
    INVOKEINTERFACE org/hibernate/engine/spi/SessionImplementor.isTransactionInProgress ()Z (itf)
    POP
   L1
    LINENUMBER 58 L1
    RETURN
   L2
    LOCALVARIABLE session Lorg/hibernate/engine/spi/SessionImplementor; L0 L2 0
    MAXSTACK = 1
    MAXLOCALS = 1
{quote}


> Add Hibernate ORM transformer option to transform any method parameter of type org.hibernate.engine.spi.SessionImplementor
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-11991
>                 URL: https://issues.jboss.org/browse/WFLY-11991
>             Project: WildFly
>          Issue Type: Enhancement
>          Components: JPA / Hibernate
>            Reporter: Scott Marlow
>            Assignee: Scott Marlow
>            Priority: Major
>         Attachments: beforechange.zip
>
>
> Use case is [https://github.com/simkam/wildfly/compare/hibernate_transformer].  The idea is to transform any class method parameter of type org.hibernate.engine.spi.SessionImplementor, in user application for any class found that isn't in the org.hibernate package.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list