(javassist) Instrumented model with abstract MappedSuperclass and field access doesn't work

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)

Environment

None

Activity

Show:
Strong Liu
December 14, 2009, 12:23 PM

the test case with annotations passes if this change applied

Strong Liu
December 14, 2009, 12:26 PM

this patch (HHH-4614-Javassist.patch) can make the test case attached pass (both HBM and annotations)
I created this patch on trunk

Emmanuel Bernard
December 14, 2009, 12:39 PM

I think your patch is good. It looks like a simple oversight.
Make sure the core test suite still pass though (instrumented).

Strong Liu
December 16, 2009, 8:47 PM

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

Steve Ebersole
March 21, 2011, 7:06 PM

Bulk closing stale resolved issues

Assignee

Strong Liu

Reporter

Anthony Patricio

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure