Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-287

Generated methods on superclasses are not visible to subclasses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.7
    • 1.0.0
    • kernel
    • None

    Description

      The pcgetField() and pcsetField() methods are created as Private instead of Protected.

      This becomes a problem if you use Property access in an entity hierarchy and use a DetachStateField. In this scenario the PCEnhancer will generate writeExternal and readExternal methods on the Entity classes. Those methods expect to be able to call pcgetField() and pcsetField() respectively. A child entity won't have access to those methods and will throw an exception when it is serialized, or deserialized.

      To resolve the problem I've modified the PCEnhancer so that the generated methods are protected (fix forthcoming).

      Attachments

        Activity

          People

            mikedd Michael Dick
            mikedd Michael Dick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: