[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4614) (javassist) Instrumented model with abstract MappedSuperclass and field access doesn't work

Strong Liu (JIRA) noreply at atlassian.com
Wed Dec 16 13:49:29 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Strong Liu updated HHH-4614:
----------------------------

          Description: 
Notes: 
- no matter if you use annotation or mapping files, test will fail using javassist (it used to fail with previous version too)


See attached testcase to reproduce the problem.
Guideline:
- testcase the pattern used in hb-core, just using annotations
- run org.hibernate.test.instrument2.runtime.JAVASSISTInstrumentationTest
- easy to switch from annotation to mapping files in org.hibernate.test.instrument2.cases.AbstractExecutable (comment/uncomment specific lines in getAnnotatedClasses and getXmlFiles)




  was:
Notes: 
- test runs fine with cglib, hb 3.2.4 SP1 + ann 3.2.1
- test runs fine with cglib, plain mapping files (trunk).
- no matter if you use annotation or mapping files, test will fail using javassist (it used to fail with previous version too)
So focus on instrumentation done using cglib.

See attached testcase to reproduce the problem.
Guideline:
- testcase the pattern used in hb-core, just using annotations
- run org.hibernate.test.instrument2.runtime.CGLIBInstrumentationTest
- easy to switch from annotation to mapping files in org.hibernate.test.instrument2.cases.AbstractExecutable (comment/uncomment specific lines in getAnnotatedClasses and getXmlFiles)

interesting point: if you complete the source with id setters + annotate the getters (instead of fields) + make the getInterestRate @Transient, the test passes.



    Affects Version/s: 3.2.4.sp1
          Component/s:     (was: annotations)
                       core
              Summary: (javassist) Instrumented model with abstract MappedSuperclass and field access doesn't work  (was: Instrumented model with abstract MappedSuperclass and field access doesn't work)

split this issue 
I will create another one focus on cglib later

> (javassist) Instrumented model with abstract MappedSuperclass and field access doesn't work
> -------------------------------------------------------------------------------------------
>
>                 Key: HHH-4614
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4614
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.4.sp1, 3.3.2, 3.5.0-Beta-2
>            Reporter: Anthony Patricio
>            Assignee: Strong Liu
>         Attachments: cglib-2.2-JBoss-1.jar, HHH-4614-Javassist.patch, minimal-test-cglib.zip, SimpleJavassistInstrumentationTest.java, testcase.zip
>
>
> Notes: 
> - no matter if you use annotation or mapping files, test will fail using javassist (it used to fail with previous version too)
> See attached testcase to reproduce the problem.
> Guideline:
> - testcase the pattern used in hb-core, just using annotations
> - run org.hibernate.test.instrument2.runtime.JAVASSISTInstrumentationTest
> - easy to switch from annotation to mapping files in org.hibernate.test.instrument2.cases.AbstractExecutable (comment/uncomment specific lines in getAnnotatedClasses and getXmlFiles)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list