Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3173

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

XMLWordPrintable

    • Release Notes
    • Workaround Exists
    • Hide

      annotating the getters instead or field seems to be a workaround.
      however, this may not be possible for heavy applications ported to EAP 5.0 (reminder, this used to work with hb 3.2.4 SP1 + ann 3.2.1 = EAP 4.2/4.3)

      Show
      annotating the getters instead or field seems to be a workaround. however, this may not be possible for heavy applications ported to EAP 5.0 (reminder, this used to work with hb 3.2.4 SP1 + ann 3.2.1 = EAP 4.2/4.3)

      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 HHH-4614 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.

            shaozliu Strong Liu(刘少壮) (Inactive)
            apatrici Anthony Patricio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: