Issue Details (XML | Word | Printable)

Key: OPENJPA-287
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael Dick
Reporter: Michael Dick
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

Generated methods on superclasses are not visible to subclasses

Created: 19/Jul/07 08:23 PM   Updated: 19/Jul/07 08:56 PM
Return to search
Component/s: kernel
Affects Version/s: 0.9.7
Fix Version/s: 1.0.0

Time Tracking:
Not Specified

Resolution Date: 19/Jul/07 08:56 PM


 Description  « Hide
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).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.